# tensorflow::ops::ExtractGlimpse::Attrs

`#include <image_ops.h>`

Optional attribute setters for [ExtractGlimpse](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/extract-glimpse#classtensorflow_1_1ops_1_1_extract_glimpse).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a091aa35c4372414f56642722f0662db5 = true` | `bool` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1ace5ce4b32f313d334089027e08a8afa9 = "uniform"` | `StringPiece` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1aafca1aa3f4c17329062219124a884db9 = true` | `bool` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a0a0566a1fa43743a25bcd5e8dd9643cb = true` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a8988355f28f34b1a6ed803cfa297436e(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs` indicates if the offset coordinates are centered relative to the image, in which case the (0, 0) offset is relative to the center of the input images. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1aa3973de4d55127fbab22be6521c8450d(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs` indicates if the noise should `uniform`, `gaussian`, or `zero`. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a2768807d142893eb4517d6a1ed7f6d06(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs` indicates if the offset coordinates are normalized. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1abd5583b6d3fa73a9cc9064fdb8320394(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs` indicates if the noise should be generated using a uniform distribution or a Gaussian distribution. |

## Public attributes

### centered_

```
bool tensorflow::ops::ExtractGlimpse::Attrs::centered_ = true
```

### noise_

```
StringPiece tensorflow::ops::ExtractGlimpse::Attrs::noise_ = "uniform"
```

### normalized_

```
bool tensorflow::ops::ExtractGlimpse::Attrs::normalized_ = true
```

### uniform_noise_

```
bool tensorflow::ops::ExtractGlimpse::Attrs::uniform_noise_ = true
```

## Public functions

### Centered

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Centered(
  bool x
)
```
indicates if the offset coordinates are centered relative to the image, in which case the (0, 0) offset is relative to the center of the input images.

If false, the (0,0) offset corresponds to the upper left corner of the input images.

Defaults to true

### Noise

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Noise(
  StringPiece x
)
```
indicates if the noise should `uniform`, `gaussian`, or `zero`.

The default is `uniform` which means the the noise type will be decided by `uniform_noise`.

Defaults to "uniform"

### Normalized

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Normalized(
  bool x
)
```
indicates if the offset coordinates are normalized.

Defaults to true

### UniformNoise

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::UniformNoise(
  bool x
)
```
indicates if the noise should be generated using a uniform distribution or a Gaussian distribution.

Defaults to true