Class AreaPhysical
Object
org.anchoranalysis.bean.AnchorBean<UnitValueExtent>
org.anchoranalysis.image.bean.unitvalue.extent.UnitValueExtent
org.anchoranalysis.image.bean.unitvalue.extent.area.UnitValueArea
org.anchoranalysis.image.bean.unitvalue.extent.area.AreaPhysical
public class AreaPhysical extends UnitValueArea
Area expressed in square meters, or units thereof.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description AreaPhysical() -
Method Summary
Modifier and Type Method Description StringgetUnitType()How much each value represents e.g.doublegetValue()The volume in units of meters, with the unit described byunitType.doubleresolveToVoxels(Optional<UnitConverter> unitConverter)Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.voidsetUnitType(String unitType)How much each value represents e.g.voidsetValue(double value)The volume in units of meters, with the unit described byunitType.StringtoString()Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
AreaPhysical
public AreaPhysical()
-
-
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).
- Throws:
UnitValueException- if missing aUnitConverter, when needed for resolution.
-
toString
- Overrides:
toStringin classAnchorBean<UnitValueExtent>
-
getValue
public double getValue()The volume in units of meters, with the unit described byunitType. -
setValue
public void setValue(double value)The volume in units of meters, with the unit described byunitType. -
getUnitType
How much each value represents e.g. square nanometers, squares millimeters etc.If unspecified, it describes meters (unsquared).
See
SpatialUnitsfor acceptable string-values. -
setUnitType
How much each value represents e.g. square nanometers, squares millimeters etc.If unspecified, it describes meters (unsquared).
See
SpatialUnitsfor acceptable string-values.
-