Crop the given image at specified location and output size

transform_crop(img, top, left, height, width)

Arguments

img

A magick-image, array or torch_tensor.

top

(integer): Vertical component of the top left corner of the crop box.

left

(integer): Horizontal component of the top left corner of the crop box.

height

(integer): Height of the crop box.

width

(integer): Width of the crop box.