Class VolumeVoxels
Volume expressed in voxels.
- Author:
- Owen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getValue()
The volume in voxels.double
resolveToVoxels
(Optional<UnitConverter> unitConverter) Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.void
setValue
(double value) The volume in voxels.toString()
By default, we useAnchorBean.describeBean()
as the string representation of the bean.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
VolumeVoxels
public VolumeVoxels() -
VolumeVoxels
public VolumeVoxels(double value) Creates a newVolumeVoxels
instance.- Parameters:
value
- The volume in voxels.
-
-
Method Details
-
resolveToVoxels
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 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
Description copied from class:AnchorBean
By default, we useAnchorBean.describeBean()
as the string representation of the bean.- Overrides:
toString
in classAnchorBean<UnitValueExtent>
- Returns:
- the string representation
-
getValue
public double getValue()The volume in voxels. -
setValue
public void setValue(double value) The volume in voxels.
-