organoid_tracker.core.bounding_box module

class organoid_tracker.core.bounding_box.BoundingBox(min_x: int, min_y: int, min_z: int, max_x: int, max_y: int, max_z: int)

Bases: object

Bounding box. Min is inclusive, max is exclusive. Fields should be left immutable.

expanded(x: int = 0, y: int = 0, z: int = 0) BoundingBox

Expands the bounding box with the given number of pixels on all directions.

get_size_zyx() Tuple[int, int, int]

Gets the size of this bounding box.

max_x: int
max_y: int
max_z: int
min_x: int
min_y: int
min_z: int