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.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.Methods inherited from class org.anchoranalysis.mpp.bean.bound.BoundMinMax
describeBean, getDelegate, getMax, getMin, scale, setDelegate, setMax, setMinMethods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMaxMethods 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: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
-
duplicate
Description copied from class:BoundCreates a duplicate of this bound.
-