Class UnsignedVoxelType

Object
org.anchoranalysis.image.voxel.datatype.VoxelDataType
org.anchoranalysis.image.voxel.datatype.UnsignedVoxelType
Direct Known Subclasses:
UnsignedByteVoxelType, UnsignedIntVoxelType, UnsignedShortVoxelType

public abstract class UnsignedVoxelType
extends VoxelDataType
Base class for voxel-data-types that are unsigned and integral.
Author:
Owen Feehan
  • Constructor Details

    • UnsignedVoxelType

      protected UnsignedVoxelType​(int numberBits, String typeIdentifier, long maxValue)
      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: VoxelDataType
      Whether the data-type represents an integer or floating-point?
      Specified by:
      isInteger in class VoxelDataType
      Returns:
      true if the data-type represents integers only, false if it is float-point.
    • isUnsigned

      public final boolean isUnsigned()
      Description copied from class: VoxelDataType
      Whether the data-type is unsigned?
      Specified by:
      isUnsigned in class VoxelDataType
      Returns:
      true if the data-type is unsigned, false if it is signed.