Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
#include <image_ops.h>
Bộ cài đặt thuộc tính tùy chọn cho ExtractGlimpse .
Bản tóm tắt
Chức năng công cộng |
---|
Centered (bool x) | cho biết tọa độ offset có được căn giữa so với hình ảnh hay không, trong trường hợp đó, offset (0, 0) có liên quan đến tâm của hình ảnh đầu vào. |
Noise (StringPiece x) | cho biết liệu nhiễu sẽ uniform , gaussian hay zero . |
Normalized (bool x) | cho biết tọa độ offset có được chuẩn hóa hay không. |
UniformNoise (bool x) | cho biết liệu nhiễu nên được tạo ra bằng cách sử dụng phân phối đồng đều hay phân phối Gaussian. |
Thuộc tính công khai
Chức năng công cộng
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]