| Constructor and Description |
|---|
RandomResizedCrop(int width,
int height,
double minAreaScale,
double maxAreaScale,
double minAspectRatio,
double maxAspectRatio)
Creates a
RandomResizedCrop Transform. |
| Modifier and Type | Method and Description |
|---|---|
NDArray |
transform(NDArray array)
Applies the
Transform to the given NDArray. |
public RandomResizedCrop(int width,
int height,
double minAreaScale,
double maxAreaScale,
double minAspectRatio,
double maxAspectRatio)
RandomResizedCrop Transform.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