public class PlaneFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIT
Deprecated.
|
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
Deprecated.
|
static int |
FLOAT
Identifies the type used to store pixel values.
|
static String |
FLOAT_TYPE
Deprecated.
|
static int |
INT
Identifies the type used to store pixel values.
|
static String |
INT16
Deprecated.
|
static String |
INT32
Deprecated.
|
static String |
INT8
Deprecated.
|
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
Deprecated.
|
static String |
UINT32
Deprecated.
|
static String |
UINT8
Deprecated.
|
Constructor and Description |
---|
PlaneFactory() |
Modifier and Type | Method and Description |
---|---|
static Plane2D |
createPlane(PlaneDef planeDef,
int channel,
Pixels pixels,
PixelBuffer buffer)
Factory method to fetch plane data and create an object to access it.
|
static boolean |
in(PixelsType type,
String[] strings)
A static helper method to check if a type is one of the elements in an
array.
|
static boolean |
isTypeSigned(PixelsType type)
A static helper method to retrieve pixel byte signage.
|
@Deprecated public static final String BIT
@Deprecated public static final String INT8
@Deprecated public static final String INT16
@Deprecated public static final String INT32
@Deprecated public static final String UINT8
@Deprecated public static final String UINT16
@Deprecated public static final String UINT32
@Deprecated public static final String FLOAT_TYPE
@Deprecated 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
public static boolean in(PixelsType type, String[] strings)
type
- A pixels type enumeration.strings
- The strings for which you want to check against.public static boolean isTypeSigned(PixelsType type)
type
- The pixels type for which you want to know the byte width.public static Plane2D createPlane(PlaneDef planeDef, int channel, 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.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.