Class BoundUnitless
Object
org.anchoranalysis.bean.AnchorBean<MarkBounds>
org.anchoranalysis.mpp.bean.bound.MarkBounds
org.anchoranalysis.mpp.bean.bound.Bound
org.anchoranalysis.mpp.bean.bound.BoundMinMax
org.anchoranalysis.mpp.bean.bound.BoundUnitless
- All Implemented Interfaces:
Serializable
public class BoundUnitless extends BoundMinMax
A bound representing unitless values, where the minimum and maximum are not affected by
resolution.
This class extends BoundMinMax to provide functionality for bounds that don't have a
specific unit or are not affected by image resolution.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BoundUnitless()Creates a new instance with default minimum and maximum values.BoundUnitless(double min, double max)Creates a new instance with specified minimum and maximum values.BoundUnitless(BoundUnitless src)Creates a new instance by copying another BoundUnitless. -
Method Summary
Modifier and Type Method Description StringdescribeBean()Boundduplicate()Creates a duplicate of this bound.doublegetMaxResolved(Optional<Resolution> resolution, boolean do3D)Gets the resolved maximum value of the bound, considering resolution and dimensionality.doublegetMinResolved(Optional<Resolution> resolution, boolean do3D)Gets the resolved minimum value of the bound, considering resolution and dimensionality.doublesize()Calculates the size of the bound range.Methods inherited from class org.anchoranalysis.mpp.bean.bound.BoundMinMax
getDelegate, getMax, getMin, scale, setDelegate, setMax, setMinMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundUnitless
public BoundUnitless()Creates a new instance with default minimum and maximum values. -
BoundUnitless
public BoundUnitless(double min, double max)Creates a new instance with specified minimum and maximum values.- Parameters:
min- the minimum valuemax- the maximum value
-
BoundUnitless
Creates a new instance by copying another BoundUnitless.- Parameters:
src- the source BoundUnitless to copy from
-
-
Method Details
-
describeBean
- Overrides:
describeBeanin classBoundMinMax
-
getMinResolved
Description copied from class:MarkBoundsGets the resolved minimum value of the bound, considering resolution and dimensionality.- Specified by:
getMinResolvedin classMarkBounds- Parameters:
resolution- an optional resolution to consider when resolving the bounddo3D- whether to consider 3D resolution (if available)- Returns:
- the resolved minimum value
-
getMaxResolved
Description copied from class:MarkBoundsGets the resolved maximum value of the bound, considering resolution and dimensionality.- Specified by:
getMaxResolvedin classMarkBounds- Parameters:
resolution- an optional resolution to consider when resolving the bounddo3D- whether to consider 3D resolution (if available)- Returns:
- the resolved maximum value
-
size
public double size()Calculates the size of the bound range.- Returns:
- the size of the range (max - min + 1)
-
duplicate
Description copied from class:BoundCreates a duplicate of this bound.
-