Documentation ¶
Overview ¶
Exposes structures and functions to store/retrieve/share regions of interest including MIST algorithm versions
Index ¶
- func GetROIs(svcs *services.APIServices, userID string, datasetID string, outMap *ROILookup, ...) error
- func ShareROIs(svcs *services.APIServices, userID string, datasetID string, roiIDs []string) ([]string, error)
- type MistROIItem
- type ROIIDs
- type ROIItem
- type ROIItemOptions
- type ROILookup
- type ROIMembers
- type ROIReference
- type ROISavedItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MistROIItem ¶
type ROIItem ¶
type ROIItem struct { Name string `json:"name"` LocationIndexes []int32 `json:"locationIndexes"` Description string `json:"description"` ImageName string `json:"imageName,omitempty"` // Name of image whose pixels are present in this ROI. // If no imageName, it's a traditional ROI consisting of PMCs PixelIndexes []int32 `json:"pixelIndexes,omitempty"` MistROIItem MistROIItem `json:"mistROIItem"` Tags []string `json:"tags"` }
ROIItem - Region of interest item, only public so Go can reflect/interogate it
type ROIItemOptions ¶
type ROILookup ¶
type ROILookup map[string]ROISavedItem
func ReadROIData ¶
func ReadROIData(svcs *services.APIServices, s3Path string) (ROILookup, error)
TODO: make this take params: userID and datasetID instead of a path, path should probably be known only by this package? Currently this is not straight-forward in the case of users requesting a shared item, and needing to call utils.StripSharedItemIDPrefix ...
type ROIMembers ¶
func GetAllPointsROI ¶
func GetAllPointsROI(dataset *protos.Experiment) ROIMembers
func GetROIsWithPMCs ¶
func GetROIsWithPMCs(userROIs ROILookup, sharedROIs ROILookup, dataset *protos.Experiment) []ROIMembers
type ROIReference ¶
type ROISavedItem ¶
type ROISavedItem struct { *ROIItem *pixlUser.APIObjectItem }
ROISavedItem - Region of interest item as saved to S3, only public so Go can reflect/interogate it
func (ROISavedItem) SetTimes ¶
func (a ROISavedItem) SetTimes(userID string, t int64)
Click to show internal directories.
Click to hide internal directories.