Constructor and Description |
---|
CenterCrop()
|
CenterCrop(int width,
int height)
Creates a
CenterCrop Transform that crops the given width and height. |
Modifier and Type | Method and Description |
---|---|
NDArray |
transform(NDArray array)
Applies the
Transform to the given NDArray . |
public CenterCrop()
public CenterCrop(int width, int height)
CenterCrop
Transform
that crops the given width and height.width
- the desired width of the cropped imageheight
- the desired height of the cropped image