webknossos.geometry.bounding_box
BoundingBoxNamedTuple(topleft, size)
Create new instance of BoundingBoxNamedTuple(topleft, size)
Alias for field number 0
Alias for field number 1
Inherited Members
- builtins.tuple
- index
- count
Method generated by attrs for class BoundingBox.
Returns a copy of the bounding box with topleft.x optionally replaced and size.x optionally replaced.
Returns a copy of the bounding box with topleft.y optionally replaced and size.y optionally replaced.
Returns a copy of the bounding box with topleft.z optionally replaced and size.z optionally replaced.
Returns a bounding box exactly containing all points.
This function extracts a bounding box in the format x_y_z_sx_sy_xz which is contained in a string.
If dont_assert is set to False, this method may return empty bounding boxes (size == (0, 0, 0))
Rounds the bounding box, so that both topleft and bottomright are divisible by mag.
:argument ceil: If true, the bounding box is enlarged when necessary. If false, it's shrinked when necessary.
Decompose the bounding box into smaller chunks of size chunk_size
.
Chunks at the border of the bounding box might be smaller than chunk_size.
If chunk_border_alignment
is set, all border coordinates
between two chunks will be divisible by that value.