public class ImageWrapper extends AnnotatableWrapper<ImageData> implements Image
Wraps function calls to the ImageData contained.
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATION_LINK
Annotation link name for this type of object
|
data| Constructor and Description |
|---|
ImageWrapper(ImageData image)
Constructor of the class ImageWrapper
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
annotationLinkType()
Returns the type of annotation link for this object.
|
List<File> |
download(ConnectionHandler client,
String path)
Downloads the original files from the server.
|
Timestamp |
getAcquisitionDate()
Gets the ImageData acquisition date.
|
List<Channel> |
getChannels(Browser browser)
Gets the image channels.
|
String |
getDescription()
Gets the image description.
|
String |
getName()
Gets the image name.
|
Pixels |
getPixels()
Gets the Pixels for this image.
|
List<Folder> |
getROIFolders(DataManager dm)
Gets the list of folders linked to the ROIs in this image.
|
List<ROI> |
getROIs(DataManager dm)
Gets all ROIs linked to the image in OMERO
|
BufferedImage |
getThumbnail(ConnectionHandler client,
int size)
Retrieves the image thumbnail of the specified size.
|
List<WellSample> |
getWellSamples()
Retrieves the well samples containing this image.
|
void |
reload(Browser browser)
Reloads the image from OMERO.
|
List<ROI> |
saveROIs(DataManager dm,
Collection<? extends ROI> rois)
Links ROIs to the image in OMERO.
|
void |
setDescription(String description)
Sets the description of the image.
|
void |
setName(String name)
Sets the name of the image.
|
ij.ImagePlus |
toImagePlus(Client client,
int[] xBounds,
int[] yBounds,
int[] cBounds,
int[] zBounds,
int[] tBounds)
Gets the imagePlus generated from the image from OMERO corresponding to the bound.
|
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlinkasDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDataObject, getChannelColor, getChannelImportedColor, getChannelName, getChildren, getDatasets, getFilesetImages, getFolders, getParents, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, getWellSamples, isOrphaned, saveROIs, toImagePlus, toImagePlusaddAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, link, linkIfNotLinked, rate, unlinkcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdatepublic static final String ANNOTATION_LINK
public ImageWrapper(ImageData image)
image - The image to wrap in the ImageWrapper.public String getName()
getName in interface RepositoryObjectpublic void setName(String name)
setName in interface Imagename - The name of the image. Mustn't be null.IllegalArgumentException - If the name is null.public String getDescription()
getDescription in interface RepositoryObjectpublic void setDescription(String description)
setDescription in interface Imagedescription - The description of the image.public Timestamp getAcquisitionDate()
getAcquisitionDate in interface Imagepublic List<WellSample> getWellSamples()
getWellSamples in interface Imageprotected String annotationLinkType()
annotationLinkType in class AnnotatableWrapper<ImageData>public List<ROI> saveROIs(DataManager dm, Collection<? extends ROI> rois) throws ServiceException, AccessException, ExecutionException
DO NOT USE IT IF A SHAPE WAS DELETED !!!
saveROIs in interface Imagedm - The data manager.rois - ROIs to be added.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public List<ROI> getROIs(DataManager dm) throws ServiceException, AccessException, ExecutionException
getROIs in interface Imagedm - The data manager.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public List<Folder> getROIFolders(DataManager dm) throws ServiceException, AccessException, ExecutionException
getROIFolders in interface Imagedm - The data manager.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public Pixels getPixels()
public ij.ImagePlus toImagePlus(Client client, int[] xBounds, int[] yBounds, int[] cBounds, int[] zBounds, int[] tBounds) throws ServiceException, AccessException, ExecutionException
toImagePlus in interface Imageclient - The client handling the connection.xBounds - Array containing the X bounds from which the pixels should be retrieved.yBounds - Array containing the Y bounds from which the pixels should be retrieved.cBounds - Array containing the C bounds from which the pixels should be retrieved.zBounds - Array containing the Z bounds from which the pixels should be retrieved.tBounds - Array containing the T bounds from which the pixels should be retrieved.ServiceException - Cannot connect to OMERO.AccessException - If an error occurs while retrieving the plane data from the pixels source.ExecutionException - A Facility can't be retrieved or instantiated.public List<Channel> getChannels(Browser browser) throws ServiceException, AccessException, ExecutionException
getChannels in interface Imagebrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public BufferedImage getThumbnail(ConnectionHandler client, int size) throws ServiceException, IOException, AccessException
If the image is not square, the size will be the longest side.
getThumbnail in interface Imageclient - The client handling the connection.size - The thumbnail size.BufferedImage.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.IOException - Cannot read thumbnail from store.public List<File> download(ConnectionHandler client, String path) throws ServiceException, AccessException, ExecutionException
download in interface Imageclient - The client handling the connection.path - Path to the file.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public void reload(Browser browser) throws ServiceException, AccessException, ExecutionException
reload in interface Imagereload in interface RepositoryObjectbrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.Copyright © 2020–2023 GReD. All rights reserved.