Uses of Class
org.anchoranalysis.spatial.box.Extent
| Package | Description |
|---|---|
| org.anchoranalysis.spatial.box |
Axis-aligned bounding-boxes and related operations.
|
| org.anchoranalysis.spatial.scale |
How to much to scale an entity in Cartesian space by.
|
-
Uses of Extent in org.anchoranalysis.spatial.box
Methods in org.anchoranalysis.spatial.box that return Extent Modifier and Type Method Description static ExtentExtent. createFromTupleDuplicate(ReadableTuple3i tuple)Creates from aReadableTuple3irepresenting the sizes in each dimension, where the tuple is not used internally.static ExtentExtent. createFromTupleReuse(ReadableTuple3i tuple)Creates from aReadableTuple3irepresenting the sizes in each dimension, where the tuple is used internally.ExtentExtent. duplicateChangeX(int xToAssign)Creates a copy of the currentExtentwith the value for the X-dimension changed.ExtentExtent. duplicateChangeY(int yToAssign)Creates a copy of the currentExtentwith the value for the Y-dimension changed.ExtentExtent. duplicateChangeZ(int zToAssign)Creates a copy of the currentExtentwith the value for the Z-dimension changed.ExtentBoundingBox. extent()Dimensions in pixels needed to represent the bounding box.ExtentExtent. flattenZ()Collapses the Z dimension.ExtentExtent. growBy(int toAdd)Creates a newExtentwithtoAddsize added to each dimension.ExtentExtent. growBy(ReadableTuple3i toAdd)Creates a newExtentwithtoAddsize added to each respective dimension.ExtentExtent. intersectWith(Extent other)Intersects this extent with another (i.e.ExtentExtent. minimum(Extent extent)An extent that contains the minimum of two extents for each dimension respectively.ExtentExtent. scaleXYBy(double scaleFactor, boolean round)Scales all dimensions by a scaling-factor.ExtentExtent. scaleXYBy(ScaleFactor scaleFactor, boolean round)Scales the X- and Y- dimensions by a scaling-factor.ExtentExtent. shrinkBy(ReadableTuple3i toSubtract)Creates a newExtentwithtoSubtractsize subtracted from each respective dimension.Methods in org.anchoranalysis.spatial.box with parameters of type Extent Modifier and Type Method Description booleanExtent. anyDimensionIsLargerThan(Extent other)Returns true if any dimension in this extent is larger than the corresponding dimension inotherextent.booleanBoundingBox. atBorder(Extent extent)Does the bounding-box have an edge at the border of an image of sizeextent?booleanBoundingBox. atBorderXY(Extent extent)LikeBoundingBox.atBorder(Extent)but considers only the X- and Y- dimensions.booleanBoundingBox. atBorderZ(Extent extent)LikeBoundingBox.atBorder(Extent)but considers only the Z-dimension.BoundingBoxBoundingBox. changeExtent(Extent extent)Creates a copiedBoundingBoxbut with a different extent.BoundingBoxBoundingBox. clampTo(Extent extent)Ensures that the box fits inside aExtentby reducing any values to their limits in the respective dimension.intExtent. compareTo(Extent other)static BoundingBoxBoundingBox. createDuplicate(ReadableTuple3i cornerMin, Extent extent)Creates a bounding-box from a corner and an extent - duplicatingcornerMin.static BoundingBoxBoundingBox. createReuse(ReadableTuple3i cornerMin, Extent extent)Creates a bounding-box from a corner and an extent - reusingcornerMininternally.booleanExtent. equalsIgnoreZ(Extent other)Checks for equality with another extent ignoring any differences in the Z dimension.BoundingBoxBoundingBox. growBy(Tuple3i toAdd, Extent containingExtent)Grow the bounding-box bytoAddamount in each dimension in both positive and negative directions.ExtentExtent. intersectWith(Extent other)Intersects this extent with another (i.e.ExtentExtent. minimum(Extent extent)An extent that contains the minimum of two extents for each dimension respectively.BoundingBoxBoundingBox. scale(ScaleFactor scaleFactor, Extent extentToAssign)Scales the bounding-box corner-point, and assigns a new extent.BoundingBoxBoundingBox. scaleClampTo(ScaleFactor scaleFactor, Extent clampTo)Scales the bounding-box, both the corner-point and the extent - ensuring it remains inside a containing-extent.Optional<BoundingBox>BoundingBoxIntersection. withInside(BoundingBox other, Extent containingExtent)Finds the intersection and clamp to a containing extent.Method parameters in org.anchoranalysis.spatial.box with type arguments of type Extent Modifier and Type Method Description BoundingBoxBoundingBox. changeExtent(UnaryOperator<Extent> extentOperator)Creates a copiedBoundingBoxbut with a different extent.Constructors in org.anchoranalysis.spatial.box with parameters of type Extent Constructor Description BoundingBox(Extent extent)Constructs a bounding-box to cover the entirety of a certain extent. -
Uses of Extent in org.anchoranalysis.spatial.scale
Methods in org.anchoranalysis.spatial.scale that return Extent Modifier and Type Method Description ExtentScaleFactorInt. scale(Extent extent)Multiplies anExtentby the respective scaling-factor in each dimension.Methods in org.anchoranalysis.spatial.scale with parameters of type Extent Modifier and Type Method Description static ScaleFactorRelativeScaleCalculator. relativeScale(Extent source, Extent target)Calculates a scaling factor so as to scalesourcetotarget.static ScaleFactorRelativeScaleCalculator. relativeScale(Extent source, Extent target, boolean preserveAspectRatio)static ScaleFactorRelativeScaleCalculator. relativeScalePreserveAspectRatio(Extent source, Extent target)Calculates a scaling factor so as to maximally scalesourcetotarget- while preserving the aspect ratio.ExtentScaleFactorInt. scale(Extent extent)Multiplies anExtentby the respective scaling-factor in each dimension.