#include <image_ops.h>
Optional attribute setters for SampleDistortedBoundingBoxV2.
Public attributes | |
---|---|
area_range_ = {0.05f, 1.0f} | gtl::ArraySlice< float > |
aspect_ratio_range_ = {0.75f, 1.33f} | gtl::ArraySlice< float > |
max_attempts_ = 100 | int64 |
seed2_ = 0 | int64 |
seed_ = 0 | int64 |
use_image_if_no_bounding_boxes_ = false | bool |
Public functions | |
---|---|
AreaRange(const gtl::ArraySlice< float > & x) | The cropped area of the image must contain a fraction of the supplied image within in this range. |
AspectRatioRange(const gtl::ArraySlice< float > & x) | The cropped area of the image must have an aspect ratio = width / height within this range. |
MaxAttempts(int64 x) | Number of attempts at generating a cropped region of the image of the specified constraints. |
Seed(int64 x) | If either seed or seed2 are set to non-zero, the random number generator is seeded by the given seed . |
Seed2(int64 x) | A second seed to avoid seed collision. |
UseImageIfNoBoundingBoxes(bool x) | Controls behavior if no bounding boxes supplied. |
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::area_range_ = {0.05f, 1.0f}
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::aspect_ratio_range_ = {0.75f, 1.33f}
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::max_attempts_ = 100
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed2_ = 0
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed_ = 0
bool tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::use_image_if_no_bounding_boxes_ = false
Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AreaRange( const gtl::ArraySlice< float > & x )
The cropped area of the image must contain a fraction of the supplied image within in this range.
Defaults to [0.05, 1]
Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AspectRatioRange( const gtl::ArraySlice< float > & x )
The cropped area of the image must have an aspect ratio = width / height within this range.
Defaults to [0.75, 1.33]
Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::MaxAttempts( int64 x )
Number of attempts at generating a cropped region of the image of the specified constraints.
After max_attempts
failures, return the entire image.
Defaults to 100
Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed( int64 x )
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.
Defaults to 0
Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed2( int64 x )
A second seed to avoid seed collision.
Defaults to 0
Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::UseImageIfNoBoundingBoxes( bool x )
Controls behavior if no bounding boxes supplied.
If true, assume an implicit bounding box covering the whole input. If false, raise an error.
Defaults to false
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/sample-distorted-bounding-box-v2/attrs.html