Package ai.djl.modality.cv.transform
Class CenterFit
java.lang.Object
ai.djl.modality.cv.transform.CenterFit
- All Implemented Interfaces:
Transform
A
Transform that fit the size of an image.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CenterFit
public CenterFit(int width, int height) Creates aCenterFitTransformthat fit to the given width and height with given interpolation.- Parameters:
width- the desired widthheight- the desired height
-
-
Method Details