Package ai.djl.modality.cv.transform
Class Crop
- java.lang.Object
-
- ai.djl.modality.cv.transform.Crop
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArray
transform(NDArray array)
Applies theTransform
to the givenNDArray
.
-
-
-
Constructor Detail
-
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
-
-