mango.image.auto_crop

mango.image.auto_crop(input, mask=None)

Crops an image to smallest possible bounding box containing all non-masked voxels.

Parameters:
  • input (mango.Dds) – Image to be cropped.
  • mask (numeric) – Find smallest bounding box of all voxels not equal to this value.
Return type:

mango.Dds

Returns:

Cropped version of input image.

Previous topic

mango.image.crop

Next topic

mango.image.subset

This Page