Class BoundPhysicalExtent
- All Implemented Interfaces:
Serializable
A bound representing physical extents, which can be resolved based on image resolution.
This class extends BoundMinMax
to provide functionality specific to physical extents,
where the bound values may be adjusted based on the image resolution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBoundPhysicalExtent
(double min, double max) Creates a new instance with specified minimum and maximum values.Creates a new instance by copying another BoundPhysicalExtent. -
Method Summary
Modifier and TypeMethodDescriptionCreates a duplicate of this bound.double
getMaxResolved
(Optional<Resolution> resolution, boolean do3D) Gets the resolved maximum value of the bound, considering resolution and dimensionality.double
getMinResolved
(Optional<Resolution> resolution, boolean do3D) Gets the resolved minimum value of the bound, considering resolution and dimensionality.Methods inherited from class org.anchoranalysis.mpp.bean.bound.BoundMinMax
describeBean, getDelegate, getMax, getMin, scale, setDelegate, setMax, setMin
Methods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMax
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundPhysicalExtent
public BoundPhysicalExtent(double min, double max) Creates a new instance with specified minimum and maximum values.- Parameters:
min
- the minimum physical extentmax
- the maximum physical extent
-
BoundPhysicalExtent
Creates a new instance by copying another BoundPhysicalExtent.- Parameters:
source
- the source BoundPhysicalExtent to copy from
-
BoundPhysicalExtent
public BoundPhysicalExtent()
-
-
Method Details
-
getMinResolved
Description copied from class:MarkBounds
Gets the resolved minimum value of the bound, considering resolution and dimensionality.- Specified by:
getMinResolved
in 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:MarkBounds
Gets the resolved maximum value of the bound, considering resolution and dimensionality.- Specified by:
getMaxResolved
in classMarkBounds
- Parameters:
resolution
- an optional resolution to consider when resolving the bounddo3D
- whether to consider 3D resolution (if available)- Returns:
- the resolved maximum value
-
duplicate
Description copied from class:Bound
Creates a duplicate of this bound.
-