Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
#include <image_ops.h>
Opcjonalne moduły ustawiające atrybuty dla ExtractGlimpse .
Streszczenie
Funkcje publiczne |
---|
Centered (bool x) | wskazuje, czy współrzędne przesunięcia są wyśrodkowane względem obrazu, w którym to przypadku przesunięcie (0, 0) jest względem środka obrazów wejściowych. |
Noise (StringPiece x) | wskazuje, czy szum powinien być uniform , gaussian czy zero . |
Normalized (bool x) | wskazuje, czy współrzędne przesunięcia są znormalizowane. |
UniformNoise (bool x) | wskazuje, czy szum powinien być generowany przy użyciu rozkładu równomiernego, czy rozkładu Gaussa. |
Atrybuty publiczne
Funkcje publiczne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 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](/versions/r2.1/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](/versions/r2.1/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](/versions/r2.1/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](/versions/r2.1/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](/versions/r2.1/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 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"]]