medpy.filter.binary.bounding_box#

medpy.filter.binary.bounding_box(img)[source]#

Return the bounding box incorporating all non-zero values in the image.

Parameters:
imgarray_like

An array containing non-zero objects.

Returns:
bboxa list of slicer objects defining the bounding box