Warning: This API is deprecated and will be removed in a future version of TensorFlow after the replacement is stable.

StatelessSampleDistortedBoundingBox.Options

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

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.