BoundingBox Class Documentation#

Package: sc.fiji.snt.util

A BoundingBox contains information (including spatial calibration) of a tracing canvas bounding box, i.e., the minimum bounding cuboid containing all nodes (SNTPoints) of a reconstructed structure.

Fields#

infostr

No description available.

xSpacingfloat

No description available.

ySpacingfloat

No description available.

zSpacingfloat

No description available.

Methods#

Utilities Methods#

clone()#

Creates a copy of this BoundingBox.

Getters Methods#

getCalibration()#

Creates a Calibration object using information from this BoundingBox

getCentroid()#
getDiagonal()#

Gets the box diagonal

getDimensions()#

Gets this BoundingBox dimensions.

getUnit()#

Gets the length unit of voxel spacing

hasDimensions()#
isScaled()#

Checks whether this BoundingBox is spatially calibrated, i.e., if voxel spacing has been specified

Setters Methods#

setDimensions(long, long, long)#

Sets the dimensions of this bounding box using uncalibrated (pixel) lengths.

setOrigin(PointInImage)#

Sets the origin for this box, i.e., its (xMin, yMin, zMin) vertex.

setOriginOpposite(PointInImage)#

Sets the origin opposite for this box, i.e., its (xMax, yMax, zMax) vertex.

setSpacing(double, double, double, String)#

Sets the voxel spacing.

setUnit(String)#

Sets the default length unit for voxel spacing (typically um, for SWC reconstructions)

Analysis Methods#

compute(Iterator)#

Computes a new positioning so that this box encloses the specified point cloud.

Other Methods#

append(Iterator)#

Computes the bounding box of the specified point cloud and appends it to this bounding box, resizing it as needed.

combine(BoundingBox)#

Combines this bounding box with another one. It is assumed both boxes share the same voxel spacing/Calibration.

contains(SNTPoint)#
contains2D(SNTPoint)#
depth()#
height()#
inferSpacing(Collection)#

Infers the voxel spacing of this box from the inter-node distances of a Collection of SWCPoints.

intersection(BoundingBox)#

Retrieves the intersection cuboid between this bounding with another bounding box. It is assumed both boxes share the same voxel spacing/Calibration.

origin()#

Retrieves the origin of this box.

originOpposite()#

Retrieves the origin opposite of this box.

scale([D)#
shift([D)#
toBoundingBox3d()#
unscaledOrigin()#

Retrieves the origin of this box in unscaled (“pixel” units)

unscaledOriginOpposite()#

Retrieves the origin opposite of this box in unscaled (“pixel” units)

width()#

See Also#