public class AreaPixels extends UnitValueArea
Area expressed in pixels.
Author:
Owen Feehan
  • Constructor Details

    • AreaPixels

      public AreaPixels(double value)
      Creates with a particular area value.
      Parameters:
      value - the area, as square pixels.
    • AreaPixels

      public AreaPixels()
  • 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 pixels.
    • setValue

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