Class DistanceVoxels
- All Implemented Interfaces:
Serializable
Implementation of
UnitValueDistance
that specifies a value in voxels, ignoring any
physical image resolution.- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getValue()
The distance in units of voxels.double
resolve
(Optional<UnitConverter> unitConverter, DirectionVector direction) Resolves the distance using aDirectionVector
.void
setValue
(double value) The distance in units of voxels.Methods inherited from class org.anchoranalysis.image.bean.unitvalue.distance.UnitValueDistance
resolve, resolve, resolveForAxis
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DistanceVoxels
public DistanceVoxels(double value) Create with a particular value.- Parameters:
value
- the distance in units of voxels.
-
DistanceVoxels
public DistanceVoxels()
-
-
Method Details
-
resolve
Description copied from class:UnitValueDistance
Resolves the distance using aDirectionVector
.The magnitude of the vector is ignored, using only the direction.
- Specified by:
resolve
in classUnitValueDistance
- Parameters:
unitConverter
- converts to/from voxels to physical units.direction
- the direction-vector.- Returns:
- the distance in units of voxels.
-
getValue
public double getValue()The distance in units of voxels. -
setValue
public void setValue(double value) The distance in units of voxels.
-