Skip to main content

bounding_box

Function bounding_box 

Source
fn bounding_box(
    mask: &[u8],
    dims: (usize, usize, usize),
) -> Option<([usize; 3], [usize; 3])>
Expand description

Inclusive bounding box of the nonzero mask voxels, or None for an empty mask.