Class AreaPixels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue()The volume in pixels.doubleresolveToVoxels(Optional<UnitConverter> unitConverter) Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.voidsetValue(double value) The volume in pixels.toString()Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
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
Description copied from class:UnitValueExtentResolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.- Specified by:
resolveToVoxelsin classUnitValueExtent- 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
- Overrides:
toStringin classAnchorBean<UnitValueExtent>
-
getValue
public double getValue()The volume in pixels. -
setValue
public void setValue(double value) The volume in pixels.
-