|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomerojava.util.DataSink
public class DataSink
Encapsulates access to the image raw data. Contains the logic to interpret a linear byte array as a 5D array. Knows how to extract a 2D-plane from the 5D array, but delegates to the specified 2D-Plane the retrieval of pixel values.
Method Summary | |
---|---|
Plane2D |
getPlane(int z,
int t,
int w)
Extracts a 2D plane from the pixels set this object is working for. |
boolean |
isSame(long pixelsID)
Returns true if a data source has already been created
for the specified pixels set, false otherwise. |
static DataSink |
makeNew(omero.model.Pixels source,
ImageService service)
Factory method to create a new DataSink to handle
access to the metadata associated with the specified pixels set. |
static double[][] |
mapServerToClient(byte[] data,
int x,
int y,
String pixelType)
|
static double[][] |
mapServerToClient(byte[] data,
int x,
int y,
String pixelType,
boolean transpose)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DataSink makeNew(omero.model.Pixels source, ImageService service)
DataSink
to handle
access to the metadata associated with the specified pixels set.
source
- The pixels set. Mustn't be null
.context
- The container's registry. Mustn't be null
.size
- The size of the cache.
public Plane2D getPlane(int z, int t, int w) throws omero.ServerError
z
- The z-section at which data is to be fetched.t
- The timepoint at which data is to be fetched.w
- The wavelength at which data is to be fetched.
DSAccessException
DSOutOfServiceException
omero.ServerError
public boolean isSame(long pixelsID)
true
if a data source has already been created
for the specified pixels set, false
otherwise.
pixelsID
- The id of the pixels set.
public static double[][] mapServerToClient(byte[] data, int x, int y, String pixelType)
public static double[][] mapServerToClient(byte[] data, int x, int y, String pixelType, boolean transpose)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.