Class Projection

Object
Projection
Direct Known Subclasses:
ComparisonProjection, MeanIntensityProjection, StandardDeviationIntensityProjection

public abstract class Projection extends Object
Base class for projections that map a 3D voxel-buffer to a 2D voxel-buffer.
  • Constructor Details

    • Projection

      public Projection()
  • Method Details

    • create

      public <T> ProjectableBuffer<T> create(VoxelDataType dataType, Extent extent) throws OperationFailedException
      Creates a buffer for the projection for a particular voxel-type and size (extent).
      Type Parameters:
      T - voxel data type to be equal to dataType.
      Parameters:
      dataType - the data-type to use for creating the buffer.
      extent - the size of the projected image. The z-dimension is ignored.
      Returns:
      a newly created buffer that can be used for projection.
      Throws:
      OperationFailedException - if dataType is unsupported.
    • createUnsignedByte

      public abstract ProjectableBuffer<UnsignedByteBuffer> createUnsignedByte(Extent extent)
      Creates a buffer for a maximum-intensity projection for unsigned byte voxels.
      Parameters:
      extent - the size of the projected image. The z-dimension is ignored.
      Returns:
      a newly created buffer that can be used for projection.
    • createUnsignedShort

      public abstract ProjectableBuffer<UnsignedShortBuffer> createUnsignedShort(Extent extent)
      Creates a buffer for a maximum-intensity projection for unsigned short voxels.
      Parameters:
      extent - the size of the projected image. The z-dimension is ignored.
      Returns:
      a newly created buffer that can be used for projection.
    • createUnsignedInt

      public abstract ProjectableBuffer<UnsignedIntBuffer> createUnsignedInt(Extent extent)
      Creates a buffer for a maximum-intensity projection for unsigned int voxels.
      Parameters:
      extent - the size of the projected image. The z-dimension is ignored.
      Returns:
      a newly created buffer that can be used for projection.
    • createFloat

      public abstract ProjectableBuffer<FloatBuffer> createFloat(Extent extent)
      Creates a buffer for a maximum-intensity projection for float voxels.
      Parameters:
      extent - the size of the projected image. The z-dimension is ignored.
      Returns:
      a newly created buffer that can be used for projection.