resqpy.olio.box_utilities.trim_box_to_mask_returning_new_mask

resqpy.olio.box_utilities.trim_box_to_mask_returning_new_mask(bounding_box_kji0, mask_kji0)[source]

Reduce the coverage of bounding box to the minimum needed to contain True elements of mask.

Returns trimmed mask.