|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.data.PlaneFactory
public class PlaneFactory
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.
Field Summary | |
---|---|
static int |
BYTE
Identifies the type used to store pixel values. |
static int |
DOUBLE
Identifies the type used to store pixel values. |
static String |
DOUBLE_TYPE
Identifies the DOUBLE data type used to store pixel values, as per OME spec. |
static int |
FLOAT
Identifies the type used to store pixel values. |
static String |
FLOAT_TYPE
Identifies the FLOAT data type used to store pixel values, as per OME spec. |
static int |
INT
Identifies the type used to store pixel values. |
static String |
INT16
Identifies the INT16 data type used to store pixel values, as per OME spec. |
static String |
INT32
Identifies the INT32 data type used to store pixel values, as per OME spec. |
static String |
INT8
Identifies the INT8 data type used to store pixel values, as per OME spec. |
static int |
LONG
Identifies the type used to store pixel values. |
static int |
SHORT
Identifies the type used to store pixel values. |
static String |
UINT16
Identifies the UINT16 data type used to store pixel values, as per OME spec. |
static String |
UINT32
Identifies the UINT32 data type used to store pixel values, as per OME spec. |
static String |
UINT8
Identifies the UINT8 data type used to store pixel values, as per OME spec. |
Constructor Summary | |
---|---|
PlaneFactory()
|
Method Summary | |
---|---|
static Plane2D |
createPlane(PlaneDef planeDef,
int channel,
ome.model.core.Pixels pixels,
PixelBuffer buffer)
Factory method to fetch plane data and create an object to access it. |
static boolean |
in(ome.model.enums.PixelsType type,
String[] strings)
A static helper method to check if a type is one of the elements in an array. |
static boolean |
isTypeSigned(ome.model.enums.PixelsType type)
A static helper method to retrieve pixel byte signage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INT8
public static final String INT16
public static final String INT32
public static final String UINT8
public static final String UINT16
public static final String UINT32
public static final String FLOAT_TYPE
public static final String DOUBLE_TYPE
public static final int BYTE
public static final int SHORT
public static final int INT
public static final int LONG
public static final int FLOAT
public static final int DOUBLE
Constructor Detail |
---|
public PlaneFactory()
Method Detail |
---|
public static boolean in(ome.model.enums.PixelsType type, String[] strings)
type
- A pixels type enumeration.strings
- The strings for which you want to check against.
public static boolean isTypeSigned(ome.model.enums.PixelsType type)
type
- The pixels type for which you want to know the byte width.
public static Plane2D createPlane(PlaneDef planeDef, int channel, ome.model.core.Pixels pixels, PixelBuffer buffer)
planeDef
- Defines the plane to be retrieved. Must not be null.channel
- The wavelength at which data is to be fetched.pixels
- The pixels from which the data is to be fetched.buffer
- The pixels buffer from which the data is to be fetched.
|
||||||||||
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.