public static class
StatelessSampleDistortedBoundingBox.Options
Optional attributes for StatelessSampleDistortedBoundingBox
Public Methods
StatelessSampleDistortedBoundingBox.Options |
areaRange(List<Float> areaRange)
|
StatelessSampleDistortedBoundingBox.Options |
aspectRatioRange(List<Float> aspectRatioRange)
|
StatelessSampleDistortedBoundingBox.Options |
maxAttempts(Long maxAttempts)
|
StatelessSampleDistortedBoundingBox.Options |
useImageIfNoBoundingBoxes(Boolean useImageIfNoBoundingBoxes)
|
Inherited Methods
boolean |
equals(Object arg0)
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public StatelessSampleDistortedBoundingBox.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 StatelessSampleDistortedBoundingBox.Options aspectRatioRange (List<Float> aspectRatioRange)
Parameters
aspectRatioRange | The cropped area of the image must have an aspect ratio = width / height within this range. |
---|
public StatelessSampleDistortedBoundingBox.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 StatelessSampleDistortedBoundingBox.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. |
---|