Class FloatVoxelType
Object
VoxelDataType
FloatVoxelType
A 32-bit voxel data-type representing floating-point numbers, as per the Java primitive
float type.
- Author:
- Owen Feehan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHow many bits to represent this voxel-type.static final FloatVoxelTypeA singleton instance of the type.static final longMinimum supported value for the type.static final longMaximum supported value for the type.Fields inherited from class org.anchoranalysis.image.voxel.datatype.VoxelDataType
VALUE_NOT_COMPATIBLE -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the data-type represents an integer or floating-point?booleanWhether 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:
-
MAX_VALUE
public static final long MAX_VALUEMinimum supported value for the type.- See Also:
-
MIN_VALUE
public static final long MIN_VALUEMaximum supported value for the type.- See Also:
-
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.
-