Class BoundUnitless
- All Implemented Interfaces:
- Serializable
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:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance with default minimum and maximum values.BoundUnitless(double min, double max) Creates a new instance with specified minimum and maximum values.Creates a new instance by copying another BoundUnitless.
- 
Method SummaryModifier and TypeMethodDescriptionA (maybe longer) description identifying the bean and perhaps its key parameters.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.BoundMinMaxgetDelegate, getMax, getMin, scale, setDelegate, setMax, setMinMethods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBoundscalculateMinMaxMethods inherited from class org.anchoranalysis.bean.AnchorBeancheckMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
- 
Constructor Details- 
BoundUnitlesspublic BoundUnitless()Creates a new instance with default minimum and maximum values.
- 
BoundUnitlesspublic BoundUnitless(double min, double max) Creates a new instance with specified minimum and maximum values.- Parameters:
- min- the minimum value
- max- the maximum value
 
- 
BoundUnitlessCreates a new instance by copying another BoundUnitless.- Parameters:
- src- the source BoundUnitless to copy from
 
 
- 
- 
Method Details- 
describeBeanDescription copied from class:AnchorBeanA (maybe longer) description identifying the bean and perhaps its key parameters.By default, it returns the same as AnchorBean.getBeanName()but beans can optionally override it- Overrides:
- describeBeanin class- BoundMinMax
- Returns:
- either the short-name of the bean, or a longer description
 
- 
getMinResolvedDescription copied from class:MarkBoundsGets the resolved minimum value of the bound, considering resolution and dimensionality.- Specified by:
- getMinResolvedin class- MarkBounds
- Parameters:
- resolution- an optional resolution to consider when resolving the bound
- do3D- whether to consider 3D resolution (if available)
- Returns:
- the resolved minimum value
 
- 
getMaxResolvedDescription copied from class:MarkBoundsGets the resolved maximum value of the bound, considering resolution and dimensionality.- Specified by:
- getMaxResolvedin class- MarkBounds
- Parameters:
- resolution- an optional resolution to consider when resolving the bound
- do3D- whether to consider 3D resolution (if available)
- Returns:
- the resolved maximum value
 
- 
sizepublic double size()Calculates the size of the bound range.- Returns:
- the size of the range (max - min + 1)
 
- 
duplicateDescription copied from class:BoundCreates a duplicate of this bound.
 
-