Package boofcv.struct.image
Enum ImageDataType
- All Implemented Interfaces:
Serializable
,Comparable<ImageDataType>
,java.lang.constant.Constable
public enum ImageDataType extends Enum<ImageDataType>
Describes the physical characteristics of the internal primitive data types inside the image
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description F
floating point imageF32
32-bit floating point imageF64
64-bit floating point imageI
Integer imageI16
16-bit integer imageI8
8-bit integer imageS16
Signed 16-bit integer imageS32
Signed 32-bit integer imageS64
Signed 64-bit integer imageS8
Signed 8-bit imageU16
Unsigned 16-bit imageU8
Unsigned 8-bit image -
Method Summary
Modifier and Type Method Description static ImageDataType
classToType(Class imageClass)
<T> T
newArray(int length)
static Class
typeToInterleavedClass(ImageDataType type)
static Class
typeToSingleClass(ImageDataType type)
static ImageDataType
valueOf(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.
-
Enum Constant Details
-
U8
Unsigned 8-bit image -
S8
Signed 8-bit image -
U16
Unsigned 16-bit image -
S16
Signed 16-bit integer image -
S32
Signed 32-bit integer image -
S64
Signed 64-bit integer image -
F32
32-bit floating point image -
F64
64-bit floating point image -
I8
8-bit integer image -
I16
16-bit integer image -
I
Integer image -
F
floating point image
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
classToType
-
typeToSingleClass
-
typeToInterleavedClass
-
newArray
public <T> T newArray(int length)
-