Package ai.djl.modality.cv.transform
Class ResizeShort
java.lang.Object
ai.djl.modality.cv.transform.ResizeShort
- All Implemented Interfaces:
Transform
A
Transform that resizes the image and keep aspect ratio.-
Constructor Summary
ConstructorsConstructorDescriptionResizeShort(int shortEdge) Creates aResizeShortTransformthat resizes to the given size.ResizeShort(int shortEdge, int longEdge, Image.Interpolation interpolation) Creates aResizeShortTransformthat resizes to the given size and given interpolation. -
Method Summary
-
Constructor Details
-
ResizeShort
public ResizeShort(int shortEdge) Creates aResizeShortTransformthat resizes to the given size.- Parameters:
shortEdge- the length of the short edge
-
ResizeShort
Creates aResizeShortTransformthat resizes to the given size and given interpolation.- Parameters:
shortEdge- the length of the short edgelongEdge- the length of the long edgeinterpolation- the desired interpolation
-
-
Method Details