Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
#include <image_ops.h>
Penyetel atribut opsional untuk ExtractGlimpse .
Ringkasan
Fungsi publik |
---|
Centered (bool x) | menunjukkan apakah koordinat offset berada di tengah relatif terhadap gambar, dalam hal ini offset (0, 0) relatif terhadap pusat gambar masukan. |
Noise (StringPiece x) | menunjukkan apakah kebisingan harus uniform , gaussian , atau zero . |
Normalized (bool x) | menunjukkan apakah koordinat offset dinormalisasi. |
UniformNoise (bool x) | menunjukkan apakah kebisingan harus dihasilkan menggunakan distribusi seragam atau distribusi Gaussian. |
Atribut publik
Fungsi publik
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-27 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.2/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.2/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.2/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.2/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.2/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"]]