public class ROIFacility extends Facility
Facility
for ROI.Modifier and Type | Method and Description |
---|---|
int |
getROICount(SecurityContext ctx,
long imageId)
Get the number of ROIs for an image (
-1
in case of error) |
ROIResult |
loadROI(SecurityContext ctx,
long roiId)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIs(SecurityContext ctx,
long imageID)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIs(SecurityContext ctx,
long imageID,
List<Long> measurements)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIs(SecurityContext ctx,
long imageID,
List<Long> measurements,
long userID)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIsByPlane(SecurityContext ctx,
long imageID,
int z,
int t)
Loads the ROI related to the specified image.
|
Collection<ROIData> |
saveROIs(SecurityContext ctx,
long imageID,
Collection<ROIData> roiList)
Save the ROI for the image to the server.
|
Collection<ROIData> |
saveROIs(SecurityContext ctx,
long imageID,
long userID,
Collection<ROIData> roiList)
Save the ROI for the image to the server.
|
addPropertyChangeListener, clear, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListener
public int getROICount(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
-1
in case of error)ctx
- The SecurityContext
imageId
- The image IdDSOutOfServiceException
DSAccessException
public ROIResult loadROI(SecurityContext ctx, long roiId) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.roiId
- The ROI's id.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public List<ROIResult> loadROIsByPlane(SecurityContext ctx, long imageID, int z, int t) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.z
- The selection z-section.t
- The selection timepoint.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public List<ROIResult> loadROIs(SecurityContext ctx, long imageID) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public List<ROIResult> loadROIs(SecurityContext ctx, long imageID, List<Long> measurements) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.measurements
- The measurements IDs linked to the image if any.DSOutOfServiceException
- If the connection is broken, or logged in.DSAccessException
- If an error occurred while trying to retrieve data from OMEDS
service.public List<ROIResult> loadROIs(SecurityContext ctx, long imageID, List<Long> measurements, long userID) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.measurements
- The measurements IDs linked to the image if any.userID
- The user's ID.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Collection<ROIData> saveROIs(SecurityContext ctx, long imageID, Collection<ROIData> roiList) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.roiList
- The list of ROI to save.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Collection<ROIData> saveROIs(SecurityContext ctx, long imageID, long userID, Collection<ROIData> roiList) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.userID
- The user's ID.roiList
- The list of ROI to save.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.
Version: 5.2.3-ice35-b22
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.