locan.data.hulls.hull.BoundingBox#

class locan.data.hulls.hull.BoundingBox(points)[source]#

Bases: object

Class with bounding box computed using numpy operations.

Parameters:

points (npt.ArrayLike) – Coordinates of input points with shape (npoints, ndim).

Variables:
  • hull (npt.NDArray[np.float64]) – Array of point coordinates of shape (2, ndim) that represent [[min_coordinates], [max_coordinates]].

  • dimension (int) – Spatial dimension of hull

  • vertices (npt.NDArray[np.float64]) – Coordinates of points that make up the hull. Array of shape (ndim, 2).

  • width (npt.NDArray[np.float64]) – Array with differences between max and min for each coordinate.

  • region_measure (float) – Hull measure, i.e. area or volume

  • subregion_measure (float) – Measure of the sub-dimensional region, i.e. circumference or surface

  • region (RoiRegion) – Convert the hull to a RoiRegion object.

Methods

__init__(points)

Attributes

property region: Region#
property vertices: ndarray[Any, dtype[float64]]#