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 TypeMethodDescriptiondoublegetValue()The distance in units of voxels.doubleresolve(Optional<UnitConverter> unitConverter, DirectionVector direction) Resolves the distance using aDirectionVector.voidsetValue(double value) The distance in units of voxels.Methods inherited from class org.anchoranalysis.image.bean.unitvalue.distance.UnitValueDistance
resolve, resolve, resolveForAxisMethods 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:UnitValueDistanceResolves the distance using aDirectionVector.The magnitude of the vector is ignored, using only the direction.
- Specified by:
resolvein 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.
-