Stay organized with collections
Save and categorize content based on your preferences.
#include <image_ops.h>
Optional attribute setters for ExtractGlimpse.
Summary
Public functions
|
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.
|
Noise(StringPiece x)
|
indicates if the noise should uniform , gaussian , or zero .
|
Normalized(bool x)
|
indicates if the offset coordinates are normalized.
|
UniformNoise(bool x)
|
indicates if the noise should be generated using a uniform distribution or a Gaussian distribution.
|
Public attributes
Public functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::ExtractGlimpse::Attrs Struct Reference\n\ntensorflow::ops::ExtractGlimpse::Attrs\n======================================\n\n`#include \u003cimage_ops.h\u003e`\n\nOptional attribute setters for [ExtractGlimpse](/api_docs/cc/class/tensorflow/ops/extract-glimpse#classtensorflow_1_1ops_1_1_extract_glimpse).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------|---------------|\n| [centered_](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a091aa35c4372414f56642722f0662db5)` = true` | `bool` |\n| [noise_](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1ace5ce4b32f313d334089027e08a8afa9)` = \"uniform\"` | `StringPiece` |\n| [normalized_](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1aafca1aa3f4c17329062219124a884db9)` = true` | `bool` |\n| [uniform_noise_](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a0a0566a1fa43743a25bcd5e8dd9643cb)` = true` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Centered](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a8988355f28f34b1a6ed803cfa297436e)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/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. |\n| [Noise](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1aa3973de4d55127fbab22be6521c8450d)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/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`. |\n| [Normalized](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1a2768807d142893eb4517d6a1ed7f6d06)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/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. |\n| [UniformNoise](#structtensorflow_1_1ops_1_1_extract_glimpse_1_1_attrs_1abd5583b6d3fa73a9cc9064fdb8320394)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/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. |\n\nPublic attributes\n-----------------\n\n### centered_\n\n```scdoc\nbool tensorflow::ops::ExtractGlimpse::Attrs::centered_ = true\n``` \n\n### noise_\n\n```scdoc\nStringPiece tensorflow::ops::ExtractGlimpse::Attrs::noise_ = \"uniform\"\n``` \n\n### normalized_\n\n```scdoc\nbool tensorflow::ops::ExtractGlimpse::Attrs::normalized_ = true\n``` \n\n### uniform_noise_\n\n```scdoc\nbool tensorflow::ops::ExtractGlimpse::Attrs::uniform_noise_ = true\n``` \n\nPublic functions\n----------------\n\n### Centered\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Centered(\n bool x\n)\n``` \nindicates 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.\n\nIf false, the (0,0) offset corresponds to the upper left corner of the input images.\n\nDefaults to true \n\n### Noise\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Noise(\n StringPiece x\n)\n``` \nindicates if the noise should `uniform`, `gaussian`, or `zero`.\n\nThe default is `uniform` which means the noise type will be decided by `uniform_noise`.\n\nDefaults to \"uniform\" \n\n### Normalized\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Normalized(\n bool x\n)\n``` \nindicates if the offset coordinates are normalized.\n\nDefaults to true \n\n### UniformNoise\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::UniformNoise(\n bool x\n)\n``` \nindicates if the noise should be generated using a uniform distribution or a Gaussian distribution.\n\nDefaults to true"]]