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, double minAreaScale, double maxAreaScale, double minAspectRatio, double maxAspectRatio)
Creates aRandomResizedCrop
Transform
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArray
transform(NDArray array)
Applies theTransform
to the givenNDArray
.
-
-
-
Constructor Detail
-
RandomResizedCrop
public RandomResizedCrop(int width, int height, double minAreaScale, double maxAreaScale, double minAspectRatio, double maxAspectRatio)
Creates aRandomResizedCrop
Transform
.- 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
-
-