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 NDArraytransform(NDArray array)Applies theTransformto the givenNDArray.
-
-
-
Constructor Detail
-
Crop
public Crop(int x, int y, int width, int height)Creates aCenterCropTransform.- 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
-
-