Package ai.djl.modality.cv.transform
Class Resize
- java.lang.Object
-
- ai.djl.modality.cv.transform.Resize
-
-
Constructor Summary
Constructors Constructor Description Resize(int size)Creates aResizeTransformthat resizes to the given size.Resize(int width, int height)Creates aResizeTransformthat resizes to the given width and height.Resize(int width, int height, Image.Interpolation interpolation)Creates aResizeTransformthat resizes to the given width and height with given interpolation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArraytransform(NDArray array)Applies theTransformto the givenNDArray.
-
-
-
Constructor Detail
-
Resize
public Resize(int size)
Creates aResizeTransformthat resizes to the given size.- Parameters:
size- the new size to use for both height and width
-
Resize
public Resize(int width, int height)Creates aResizeTransformthat resizes to the given width and height.- Parameters:
width- the desired widthheight- the desired height
-
Resize
public Resize(int width, int height, Image.Interpolation interpolation)Creates aResizeTransformthat resizes to the given width and height with given interpolation.- Parameters:
width- the desired widthheight- the desired heightinterpolation- the desired interpolation
-
-