Class UnitValueExtent

Object
org.anchoranalysis.bean.AnchorBean<UnitValueExtent>
org.anchoranalysis.image.bean.unitvalue.extent.UnitValueExtent
Direct Known Subclasses:
UnitValueArea, UnitValueVolume

public abstract class UnitValueExtent
extends AnchorBean<UnitValueExtent>
A base class for a value that describes an area or volume measurement, which can then be resolved to a number of voxels.
Author:
Owen
  • Constructor Details

  • Method Details

    • resolveToVoxels

      public abstract double resolveToVoxels​(Optional<UnitConverter> unitConverter) throws UnitValueException
      Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.
      Parameters:
      unitConverter - converts from voxelized units to different physical measurements of area / volume / distance.
      Returns:
      the resolved-value (pixels for area, voxels for volume).
      Throws:
      UnitValueException - if missing a UnitConverter, when needed for resolution.