public class RawDataFacility extends Facility implements java.lang.AutoCloseable
Facility
for accessing raw dataModifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Map<java.lang.Integer,int[]> |
getHistogram(SecurityContext ctx,
PixelsData pixels,
int[] channels,
int binCount,
boolean globalRange,
omero.romio.PlaneDef plane)
Get the histogram data for the given image.
|
java.util.Map<java.lang.Integer,int[]> |
getHistogram(SecurityContext ctx,
PixelsData pixels,
int[] channels,
int z,
int t)
Get the histogram data for the given image, using default 256 bins and
the channels global min/max for the histogram range.
|
Plane2D |
getPlane(SecurityContext ctx,
PixelsData pixels,
int z,
int t,
int c)
Extracts a 2D plane from the pixels set.
|
Plane2D |
getTile(SecurityContext ctx,
PixelsData pixels,
int z,
int t,
int c,
int x,
int y,
int w,
int h)
Extracts a 2D tile from the pixels set
|
addPropertyChangeListener, clear, firePropertyChanged, firePropertyChanged, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListener
public java.util.Map<java.lang.Integer,int[]> getHistogram(SecurityContext ctx, PixelsData pixels, int[] channels, int z, int t) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
pixels
- The PixelsData
objectchannels
- The channel indicesz
- The z plane index (optional; default: 0)t
- The t plane index (optional; default: 0)Map
of histogram data, where the key is the channel
indexDSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public java.util.Map<java.lang.Integer,int[]> getHistogram(SecurityContext ctx, PixelsData pixels, int[] channels, int binCount, boolean globalRange, omero.romio.PlaneDef plane) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
pixels
- The PixelsData
objectchannels
- The channel indicesbinCount
- The number of bins (optional, default: 256)globalRange
- Use the global minimum/maximum to determine the histogram
range, otherwise use plane minimum/maximum valueplane
- The plane to specify z/t and/or a certain region (optional,
default: whole region of the first z/t plane)Map
of histogram data, where the key is the channel
indexDSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Plane2D getPlane(SecurityContext ctx, PixelsData pixels, int z, int t, int c) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.pixels
- The PixelsData
object to fetch the data from.z
- The z-section at which data is to be fetched.t
- The timepoint at which data is to be fetched.c
- The channel at which data is to be fetched.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Plane2D getTile(SecurityContext ctx, PixelsData pixels, int z, int t, int c, int x, int y, int w, int h) throws DataSourceException
ctx
- The security context.pixels
- The PixelsData
object to fetch the data from.z
- The z-section at which data is to be fetched.t
- The timepoint at which data is to be fetched.c
- The channel at which data is to be fetched.x
- The x coordinatey
- The y coordinatew
- The width of the tileh
- The height of the tileDataSourceException
- If an error occurs while retrieving the plane data from the
pixels source.public void close()
close
in interface java.lang.AutoCloseable
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.