Class VolumeVoxels
Object
org.anchoranalysis.bean.AnchorBean<UnitValueExtent>
org.anchoranalysis.image.bean.unitvalue.extent.UnitValueExtent
org.anchoranalysis.image.bean.unitvalue.extent.volume.UnitValueVolume
org.anchoranalysis.image.bean.unitvalue.extent.volume.VolumeVoxels
public class VolumeVoxels extends UnitValueVolume
Volume expressed in voxels.
- Author:
- Owen
-
Constructor Summary
Constructors Constructor Description VolumeVoxels()VolumeVoxels(double value) -
Method Summary
Modifier and Type Method Description doublegetValue()The volume in voxels.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 voxels.StringtoString()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)
-
-
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 voxels. -
setValue
public void setValue(double value)The volume in voxels.
-