Package ai.djl.modality.cv.transform
Class RandomResizedCrop
- java.lang.Object
-
- ai.djl.modality.cv.transform.RandomResizedCrop
-
-
Constructor Summary
Constructors Constructor Description RandomResizedCrop(int width, int height)Creates aRandomResizedCropTransform.RandomResizedCrop(int width, int height, double minAreaScale, double maxAreaScale, double minAspectRatio, double maxAspectRatio)Creates aRandomResizedCropTransform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArraytransform(NDArray array)Applies theTransformto the givenNDArray.
-
-
-
Constructor Detail
-
RandomResizedCrop
public RandomResizedCrop(int width, int height, double minAreaScale, double maxAreaScale, double minAspectRatio, double maxAspectRatio)Creates aRandomResizedCropTransform.- Parameters:
width- the output width of the imageheight- the output height of the imageminAreaScale- minimum targetArea/srcArea valuemaxAreaScale- maximum targetArea/srcArea valueminAspectRatio- minimum aspect ratiomaxAspectRatio- maximum aspect ratio
-
RandomResizedCrop
public RandomResizedCrop(int width, int height)Creates aRandomResizedCropTransform.- Parameters:
width- the output width of the imageheight- the output height of the image
-
-