mango.image.crop

mango.image.crop(input, offset=None, shape=None)

Crops an input image to a new origin and shape.

Parameters:
  • input (mango.Dds) – mango.Dds image which is to be cropped.
  • offset (3-sequence of int) – Global origin index (relative to input.origin) of the returned subset.
  • shape (3-sequence of int) – Global shape of the returned subset.
Return type:

mango.Dds

Returns:

Cropped mango.Dds.

Previous topic

mango.image.max_covering_radius

Next topic

mango.image.auto_crop

This Page