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 Summary
Constructors Modifier Constructor Description protectedUnitValueExtent() -
Method Summary
Modifier and Type Method Description abstract doubleresolveToVoxels(Optional<UnitConverter> unitConverter)Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
UnitValueExtent
protected UnitValueExtent()
-
-
Method Details
-
resolveToVoxels
public abstract double resolveToVoxels(Optional<UnitConverter> unitConverter) throws UnitValueExceptionResolves 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 aUnitConverter, when needed for resolution.
-