boofcv.struct.image
Enum ImageDataType
- java.lang.Object
-
- java.lang.Enum<ImageDataType>
-
- boofcv.struct.image.ImageDataType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ImageDataType>
public enum ImageDataType extends java.lang.Enum<ImageDataType>
Describes the physical characteristics of the internal primitive data types inside the image
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description Ffloating point imageF3232-bit floating point imageF6464-bit floating point imageIInteger imageI1616-bit integer imageI88-bit integer imageS16Signed 16-bit integer imageS32Signed 32-bit integer imageS64Signed 64-bit integer imageS8Signed 8-bit imageU16Unsigned 16-bit imageU8Unsigned 8-bit image
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ImageDataTypeclassToType(java.lang.Class imageClass)java.lang.ClassgetDataType()The primitive data type used by each pixel.doublegetMaxValue()Returns the maximum allowed value for data elements in this data typedoublegetMinValue()Returns the minimum allowed value for data elements in this data typeintgetNumBits()Number of bits per pixel in the image.java.lang.ClassgetSumType()Type of data used when summing elements in the image.booleanisAbstract()If the image is an abstract data type or not.booleanisInteger()If each pixel is an integer or not.booleanisSigned()If the image has a signed or unsigned data type.static java.lang.ClasstypeToInterleavedClass(ImageDataType type)static java.lang.ClasstypeToSingleClass(ImageDataType type)static ImageDataTypevalueOf(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.
-
-
-
Enum Constant Detail
-
U8
public static final ImageDataType U8
Unsigned 8-bit image
-
S8
public static final ImageDataType S8
Signed 8-bit image
-
U16
public static final ImageDataType U16
Unsigned 16-bit image
-
S16
public static final ImageDataType S16
Signed 16-bit integer image
-
S32
public static final ImageDataType S32
Signed 32-bit integer image
-
S64
public static final ImageDataType S64
Signed 64-bit integer image
-
F32
public static final ImageDataType F32
32-bit floating point image
-
F64
public static final ImageDataType F64
64-bit floating point image
-
I8
public static final ImageDataType I8
8-bit integer image
-
I16
public static final ImageDataType I16
16-bit integer image
-
I
public static final ImageDataType I
Integer image
-
F
public static final ImageDataType F
floating point image
-
-
Method Detail
-
values
public static ImageDataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageDataType c : ImageDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageDataType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
classToType
public static ImageDataType classToType(java.lang.Class imageClass)
-
typeToSingleClass
public static java.lang.Class typeToSingleClass(ImageDataType type)
-
typeToInterleavedClass
public static java.lang.Class typeToInterleavedClass(ImageDataType type)
-
getNumBits
public int getNumBits()
Number of bits per pixel in the image.
-
isAbstract
public boolean isAbstract()
If the image is an abstract data type or not.
-
isSigned
public boolean isSigned()
If the image has a signed or unsigned data type.
-
isInteger
public boolean isInteger()
If each pixel is an integer or not.
-
getDataType
public java.lang.Class getDataType()
The primitive data type used by each pixel.
-
getSumType
public java.lang.Class getSumType()
Type of data used when summing elements in the image.
-
getMaxValue
public double getMaxValue()
Returns the maximum allowed value for data elements in this data type
-
getMinValue
public double getMinValue()
Returns the minimum allowed value for data elements in this data type
-
-
DataMelt 3.0 © DataMelt by jWork.ORG