Skip to main content

Crop Images

Synopsis

Crops images deterministically or randomly.

Description

Depending on the parameters this operator appends a transformation which either deterministically or randomly crops the images.

Input

transformer

Container holding the image transformers / pre-processors. This operator will extend it.

Output

transformer

Container holding the image transformers / pre-processors that this operator now extended.

Parameters

Pixel to crop

Set the number of pixel to be cropped of a given image from all four sides.

Crop all sides the same

Decides whether to crop sides evenly.

Pixel to crop from top

Set the number of pixel to be cropped from the top of a given image.

Pixel to crop from bottom

Set the number of pixel to be cropped from the bottom of a given image.

Pixel to crop from left

Set the number of pixel to be cropped from the left of a given image.

Pixel to crop from right

Set the number of pixel to be cropped from the right of a given image.

Random cropping

If selected a random cropping side will be selected for each side within the limits provided by the other parameters.