public class RandomCropTransform extends BaseImageTransform<org.bytedeco.javacpp.opencv_core.Mat>
| Modifier and Type | Field and Description |
|---|---|
protected int |
outputHeight |
protected int |
outputWidth |
protected org.nd4j.linalg.api.rng.Random |
rng |
converter, random| Constructor and Description |
|---|
RandomCropTransform(int height,
int width) |
RandomCropTransform(long seed,
int height,
int width) |
RandomCropTransform(Random random,
long seed,
int height,
int width) |
| Modifier and Type | Method and Description |
|---|---|
ImageWritable |
transform(ImageWritable image,
Random random)
Takes an image and returns a randomly cropped image.
|
transformprotected int outputHeight
protected int outputWidth
protected org.nd4j.linalg.api.rng.Random rng
public RandomCropTransform(int height,
int width)
public RandomCropTransform(long seed,
int height,
int width)
public RandomCropTransform(Random random, long seed, int height, int width)
public ImageWritable transform(ImageWritable image, Random random)
image - to transform, null == end of streamrandom - object to use (or null for deterministic)Copyright © 2017. All rights reserved.