Class UnsignedVoxelType
Object
VoxelDataType
UnsignedVoxelType
- Direct Known Subclasses:
UnsignedByteVoxelType,UnsignedIntVoxelType,UnsignedShortVoxelType
Base class for voxel-data-types that are unsigned and integral.
- Author:
- Owen Feehan
-
Field Summary
Fields inherited from class org.anchoranalysis.image.voxel.datatype.VoxelDataType
VALUE_NOT_COMPATIBLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnsignedVoxelType(int numberBits, String typeIdentifier, long maxValue) Construct for a particular number of bits, with a unique identifier, and with bounds on the values. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanWhether the data-type represents an integer or floating-point?final booleanWhether the data-type is unsigned?Methods inherited from class org.anchoranalysis.image.voxel.datatype.VoxelDataType
bitDepth, equals, hashCode, maxValue, minValue, numberBytes, toString
-
Constructor Details
-
UnsignedVoxelType
Construct for a particular number of bits, with a unique identifier, and with bounds on the values.- Parameters:
numberBits- the number of bits required to represent a voxel.typeIdentifier- a string to uniquely and compactly describe this type.maxValue- the maximum value this type can represent.
-
-
Method Details
-
isInteger
public final 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 final 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.
-