Package ai.djl.modality.cv.transform
Class Crop
java.lang.Object
ai.djl.modality.cv.transform.Crop
- All Implemented Interfaces:
Transform
A
Transform
that crops the image to a given location and size.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Crop
public Crop(int x, int y, int width, int height) Creates aCenterCrop
Transform
.- Parameters:
x
- the x coordinate of the top-left corner of the cropy
- the y coordinate of the top-left corner of the cropwidth
- the width of the cropped imageheight
- the height of the cropped image
-
-
Method Details