- All Implemented Interfaces:
- PipelineStep, TextConfig, Serializable
public class ImageCropStep
extends Object
implements PipelineStep
Crop an image to the specified rectangular region. The crop region may be specified in one of two ways:
(a) Via a bounding box, or
(b) Via a List<Point> of length 2, containing the top-left and bottom-right crop locations.
Furthermore, the bounding box and corner point coordinates may be specified in terms of either pixels or
"fraction of image". Note that if the crop region falls partly outside the input image region, black padding
will be added as necessary to keep the requested output size.
Supports both Image and List<Image> inputs.
- Author:
- Alex Black
- See Also:
- Serialized Form