Package ai.djl.modality.cv.transform
Class CenterCrop
java.lang.Object
ai.djl.modality.cv.transform.CenterCrop
- All Implemented Interfaces:
Transform
A
Transform
that crops the center of an image.-
Constructor Summary
ConstructorsConstructorDescriptionCenterCrop
(int width, int height) Creates aCenterCrop
Transform
that crops the given width and height. -
Method Summary
-
Constructor Details
-
CenterCrop
public CenterCrop() -
CenterCrop
public CenterCrop(int width, int height) Creates aCenterCrop
Transform
that crops the given width and height.- Parameters:
width
- the desired width of the cropped imageheight
- the desired height of the cropped image
-
-
Method Details