public static class
SampleDistortedBoundingBox.Options
Optional attributes for SampleDistortedBoundingBox
Public Methods
SampleDistortedBoundingBox.Options |
areaRange(List<Float> areaRange)
|
SampleDistortedBoundingBox.Options |
aspectRatioRange(List<Float> aspectRatioRange)
|
SampleDistortedBoundingBox.Options |
maxAttempts(Long maxAttempts)
|
SampleDistortedBoundingBox.Options |
seed(Long seed)
|
SampleDistortedBoundingBox.Options |
seed2(Long seed2)
|
SampleDistortedBoundingBox.Options |
useImageIfNoBoundingBoxes(Boolean useImageIfNoBoundingBoxes)
|
Inherited Methods
Public Methods
public SampleDistortedBoundingBox.Options areaRange (List<Float> areaRange)
Parameters
areaRange | The cropped area of the image must contain a fraction of the supplied image within this range. |
---|
public SampleDistortedBoundingBox.Options aspectRatioRange (List<Float> aspectRatioRange)
Parameters
aspectRatioRange | The cropped area of the image must have an aspect ratio = width / height within this range. |
---|
public SampleDistortedBoundingBox.Options maxAttempts (Long maxAttempts)
Parameters
maxAttempts | Number of attempts at generating a cropped region of the image of the specified constraints. After `max_attempts` failures, return the entire image. |
---|
public SampleDistortedBoundingBox.Options seed (Long seed)
Parameters
seed | If either `seed` or `seed2` are set to non-zero, the random number generator is seeded by the given `seed`. Otherwise, it is seeded by a random seed. |
---|
public SampleDistortedBoundingBox.Options seed2 (Long seed2)
Parameters
seed2 | A second seed to avoid seed collision. |
---|
public SampleDistortedBoundingBox.Options useImageIfNoBoundingBoxes (Boolean useImageIfNoBoundingBoxes)
Parameters
useImageIfNoBoundingBoxes | Controls behavior if no bounding boxes supplied. If true, assume an implicit bounding box covering the whole input. If false, raise an error. |
---|