public enum ImageDataType extends java.lang.Enum<ImageDataType>
| Enum Constant and Description |
|---|
F
floating point image
|
F32
32-bit floating point image
|
F64
64-bit floating point image
|
I
Integer image
|
I16
16-bit integer image
|
I8
8-bit integer image
|
S16
Signed 16-bit integer image
|
S32
Signed 32-bit integer image
|
S64
Signed 64-bit integer image
|
S8
Signed 8-bit image
|
U16
Unsigned 16-bit image
|
U8
Unsigned 8-bit image
|
| Modifier and Type | Method and Description |
|---|---|
static ImageDataType |
classToType(java.lang.Class imageClass) |
java.lang.Class |
getDataType()
The primitive data type used by each pixel.
|
double |
getMaxValue()
Returns the maximum allowed value for data elements in this data type
|
double |
getMinValue()
Returns the minimum allowed value for data elements in this data type
|
int |
getNumBits()
Number of bits per pixel in the image.
|
java.lang.Class |
getSumType()
Type of data used when summing elements in the image.
|
boolean |
isAbstract()
If the image is an abstract data type or not.
|
boolean |
isInteger()
If each pixel is an integer or not.
|
boolean |
isSigned()
If the image has a signed or unsigned data type.
|
static java.lang.Class |
typeToInterleavedClass(ImageDataType type) |
static java.lang.Class |
typeToSingleClass(ImageDataType type) |
static ImageDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageDataType U8
public static final ImageDataType S8
public static final ImageDataType U16
public static final ImageDataType S16
public static final ImageDataType S32
public static final ImageDataType S64
public static final ImageDataType F32
public static final ImageDataType F64
public static final ImageDataType I8
public static final ImageDataType I16
public static final ImageDataType I
public static final ImageDataType F
public static ImageDataType[] values()
for (ImageDataType c : ImageDataType.values()) System.out.println(c);
public static ImageDataType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ImageDataType classToType(java.lang.Class imageClass)
public static java.lang.Class typeToSingleClass(ImageDataType type)
public static java.lang.Class typeToInterleavedClass(ImageDataType type)
public int getNumBits()
public boolean isAbstract()
public boolean isSigned()
public boolean isInteger()
public java.lang.Class getDataType()
public java.lang.Class getSumType()
public double getMaxValue()
public double getMinValue()