public class RawDataFacility extends Facility implements AutoCloseable
Facility
for accessing raw dataModifier and Type | Method and Description |
---|---|
void |
close() |
Map<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.
|
Map<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 |
getPlane(SecurityContext ctx,
PixelsData pixels,
int z,
int t,
int c,
boolean close)
Deprecated.
Use getPlane(SecurityContext, PixelsData, z, t, c) instead
|
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 Map<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 Map<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.@Deprecated public Plane2D getPlane(SecurityContext ctx, PixelsData pixels, int z, int t, int c, boolean close) 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.close
- Pass true
to close the connection to the
Pixelstore, false
to leave it open. (deprecated,
the resources will be closed when the facility itself is
closed, see close()
, AutoCloseable
)DataSourceException
- If an error occurs while retrieving the plane data from the
pixels source.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 AutoCloseable
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.