| Constructor and Description |
|---|
Crop(int x,
int y,
int width,
int height)
Creates a
CenterCrop Transform. |
| Modifier and Type | Method and Description |
|---|---|
NDArray |
transform(NDArray array)
Applies the
Transform to the given NDArray. |
public Crop(int x,
int y,
int width,
int height)
CenterCrop Transform.x - the x coordinate of the top-left corner of the cropy - the y coordinate of the top-left corner of the cropwidth - the width of the cropped imageheight - the height of the cropped image