Class FloatVoxelType
Object
org.anchoranalysis.image.voxel.datatype.VoxelDataType
org.anchoranalysis.image.voxel.datatype.FloatVoxelType
public class FloatVoxelType extends VoxelDataType
A 32-bit voxel data-type representing floating-point numbers, as per the Java primitive
float type.
- Author:
- Owen Feehan
-
Field Summary
Fields Modifier and Type Field Description static intBIT_DEPTHHow many bits to represent this voxel-type.static FloatVoxelTypeINSTANCEA singleton instance of the type.static longMAX_VALUEMinimum supported value for the type.static longMIN_VALUEMaximum supported value for the type.Fields inherited from class org.anchoranalysis.image.voxel.datatype.VoxelDataType
VALUE_NOT_COMPATIBLE -
Method Summary
Modifier and Type Method Description booleanisInteger()Whether the data-type represents an integer or floating-point?booleanisUnsigned()Whether the data-type is unsigned?Methods inherited from class org.anchoranalysis.image.voxel.datatype.VoxelDataType
bitDepth, equals, hashCode, maxValue, minValue, numberBytes, toString
-
Field Details
-
BIT_DEPTH
public static final int BIT_DEPTHHow many bits to represent this voxel-type.- See Also:
- Constant Field Values
-
MAX_VALUE
public static final long MAX_VALUEMinimum supported value for the type.- See Also:
- Constant Field Values
-
MIN_VALUE
public static final long MIN_VALUEMaximum supported value for the type.- See Also:
- Constant Field Values
-
INSTANCE
A singleton instance of the type.
-
-
Method Details
-
isInteger
public boolean isInteger()Description copied from class:VoxelDataTypeWhether the data-type represents an integer or floating-point?- Specified by:
isIntegerin classVoxelDataType- Returns:
- true if the data-type represents integers only, false if it is float-point.
-
isUnsigned
public boolean isUnsigned()Description copied from class:VoxelDataTypeWhether the data-type is unsigned?- Specified by:
isUnsignedin classVoxelDataType- Returns:
- true if the data-type is unsigned, false if it is signed.
-