public interface Image extends RepositoryObject, Annotatable
| Modifier and Type | Method and Description |
|---|---|
ImageData |
asDataObject()
Returns a
ImageData corresponding to the handled object. |
List<File> |
download(ConnectionHandler client,
String path)
Downloads the original files from the server.
|
Timestamp |
getAcquisitionDate()
Gets the ImageData acquisition date
|
default Color |
getChannelColor(Client client,
int index)
Gets the current color of the channel, or the original if it cannot be retrieved.
|
default Color |
getChannelImportedColor(Browser browser,
int index)
Gets the original color of the channel.
|
default String |
getChannelName(Browser browser,
int index)
Gets the name of the channel.
|
List<Channel> |
getChannels(Browser browser)
Gets the image channels.
|
default List<RepositoryObject> |
getChildren(Browser browser)
Returns an empty list as images do not have children.
|
default List<Dataset> |
getDatasets(Browser browser)
Retrieves the datasets containing this image from OMERO.
|
default List<Image> |
getFilesetImages(Browser browser)
Returns the list of images sharing the same fileset as the current image.
|
default List<Folder> |
getFolders(Browser browser)
Gets the list of folders linked to this image.
|
default List<RepositoryObject> |
getParents(Browser browser)
Gets the object parents.
|
Pixels |
getPixels()
Gets the Pixels for this image.
|
default List<PlateAcquisition> |
getPlateAcquisitions(Browser browser)
Returns the plate acquisitions linked to this image.
|
default List<Plate> |
getPlates(Browser browser)
Retrieves the plates containing this image.
|
default List<Project> |
getProjects(Browser browser)
Retrieves the projects containing 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
|
default List<Screen> |
getScreens(Browser browser)
Retrieves the screens containing this image
|
BufferedImage |
getThumbnail(ConnectionHandler client,
int size)
Retrieves the image thumbnail of the specified size.
|
default List<Well> |
getWells(Browser browser)
Retrieves the wells containing this image.
|
List<WellSample> |
getWellSamples()
Retrieves the well samples containing this image.
|
default List<WellSample> |
getWellSamples(Browser browser)
Retrieves the well samples containing this image and updates them from OMERO.
|
default boolean |
isOrphaned(Browser browser)
Checks if image is orphaned (not in a WellSample nor linked to a dataset).
|
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.
|
default List<ROI> |
saveROIs(DataManager dm,
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.
|
default ij.ImagePlus |
toImagePlus(Client client)
Generates the ImagePlus from the ij library corresponding to the image from OMERO WARNING : you need to include
the ij library to use this function
|
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.
|
default ij.ImagePlus |
toImagePlus(Client client,
ROI roi)
Gets the imagePlus from the image generated from the ROI.
|
getDescription, getNameaddAndReplaceFile, 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, saveAndUpdateImageData asDataObject()
ImageData corresponding to the handled object.asDataObject in interface RemoteObjectvoid setName(String name)
name - The name of the image. Mustn't be null.IllegalArgumentException - If the name is null.void setDescription(String description)
description - The description of the image.default List<RepositoryObject> getParents(Browser browser) throws AccessException, ServiceException, ExecutionException
getParents in interface RepositoryObjectbrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<RepositoryObject> getChildren(Browser browser)
getChildren in interface RepositoryObjectbrowser - The data browser.Timestamp getAcquisitionDate()
default List<Project> getProjects(Browser browser) throws ServiceException, AccessException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Dataset> getDatasets(Browser browser) throws ServiceException, AccessException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.List<WellSample> getWellSamples()
default List<WellSample> getWellSamples(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Well> getWells(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<PlateAcquisition> getPlateAcquisitions(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Plate> getPlates(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Screen> getScreens(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default boolean isOrphaned(Browser browser) throws ServiceException, AccessException
browser - The data browser.true if the image is orphaned, false otherwise.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.default List<Image> getFilesetImages(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.AccessException - Cannot access data.ServiceException - Cannot connect to OMERO.ExecutionException - A Facility can't be retrieved or instantiated.List<ROI> saveROIs(DataManager dm, Collection<? extends ROI> rois) throws ServiceException, AccessException, ExecutionException
DO NOT USE IT IF A SHAPE WAS DELETED !!!
dm - 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.default List<ROI> saveROIs(DataManager dm, ROI... rois) throws ServiceException, AccessException, ExecutionException
DO NOT USE IT IF A SHAPE WAS DELETED !!!
dm - 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.List<ROI> getROIs(DataManager dm) throws ServiceException, AccessException, ExecutionException
dm - The data manager.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.List<Folder> getROIFolders(DataManager dm) throws ServiceException, AccessException, ExecutionException
dm - The data manager.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Folder> getFolders(Browser browser) throws ServiceException, AccessException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.Pixels getPixels()
default ij.ImagePlus toImagePlus(Client client) throws ServiceException, AccessException, ExecutionException
client - The client handling the connection.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.ij.ImagePlus toImagePlus(Client client, int[] xBounds, int[] yBounds, int[] cBounds, int[] zBounds, int[] tBounds) throws ServiceException, AccessException, ExecutionException
client - 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.default ij.ImagePlus toImagePlus(Client client, ROI roi) throws ServiceException, AccessException, ExecutionException
client - The client handling the connection.roi - The ROI.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.List<Channel> getChannels(Browser browser) throws ServiceException, AccessException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default String getChannelName(Browser browser, int index) throws ServiceException, AccessException, ExecutionException
browser - The data browser.index - Channel number.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default Color getChannelImportedColor(Browser browser, int index) throws ServiceException, AccessException, ExecutionException
browser - The data browser.index - Channel number.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default Color getChannelColor(Client client, int index) throws ServiceException, AccessException, ExecutionException
client - The client handling the connection.index - Channel number.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.BufferedImage getThumbnail(ConnectionHandler client, int size) throws ServiceException, IOException, AccessException
If the image is not square, the size will be the longest side.
client - 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.List<File> download(ConnectionHandler client, String path) throws ServiceException, AccessException, ExecutionException
client - 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.void reload(Browser browser) throws ServiceException, AccessException, ExecutionException
reload 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.