public class VolumeVoxels extends UnitValueVolume
Volume expressed in voxels.
Author:
Owen
  • Constructor Details

    • VolumeVoxels

      public VolumeVoxels()
    • VolumeVoxels

      public VolumeVoxels(double value)
      Creates a new VolumeVoxels instance.
      Parameters:
      value - The volume in voxels.
  • Method Details

    • resolveToVoxels

      public double resolveToVoxels(Optional<UnitConverter> unitConverter)
      Description copied from class: UnitValueExtent
      Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.
      Specified by:
      resolveToVoxels in class UnitValueExtent
      Parameters:
      unitConverter - converts from voxelized units to different physical measurements of area / volume / distance.
      Returns:
      the resolved-value (pixels for area, voxels for volume).
    • toString

      public String toString()
      Description copied from class: AnchorBean
      By default, we use AnchorBean.describeBean() as the string representation of the bean.
      Overrides:
      toString in class AnchorBean<UnitValueExtent>
      Returns:
      the string representation
    • getValue

      public double getValue()
      The volume in voxels.
    • setValue

      public void setValue(double value)
      The volume in voxels.