PyramidingPolicy
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.
Thuật toán sẽ được dùng khi tạo các phiên bản có độ phân giải thấp của một dải hình ảnh. Theo mặc định, mặt nạ được tính là GIÁ TRỊ TRUNG BÌNH của các mặt nạ đầu vào, phản ánh tổng trọng số của dữ liệu đầu vào mà từ đó số liệu thống kê đầu ra được yêu cầu được tính. Trong trường hợp SAMPLE, mặt nạ của pixel được lấy mẫu sẽ được sử dụng trực tiếp.
Enum |
PYRAMIDING_POLICY_UNSPECIFIED |
Chưa chỉ định. |
MEAN |
Pixel đầu ra là giá trị trung bình có trọng số theo mặt nạ của các pixel đầu vào. Nên được dùng cho kết quả quan sát trực tiếp và các đại lượng liên tục như nhiệt độ. |
SAMPLE |
Pixel đầu ra giống hệt pixel đầu vào ở trên cùng bên trái. Nên được dùng cho các dải QA/mặt nạ bit hoặc các trường không liên tục khác, chẳng hạn như ngày thu thập pixel. |
MIN |
Pixel đầu ra là giá trị tối thiểu của các pixel đầu vào. |
MAX |
Pixel đầu ra là giá trị tối đa của các pixel đầu vào. |
MODE |
Pixel đầu ra là chế độ có trọng số mặt nạ của các pixel đầu vào. Nên được dùng cho các dải phủ bề mặt. |
MEDIAN |
Pixel đầu ra là giá trị trung bình có trọng số theo mặt nạ của các pixel đầu vào. Trong trường hợp có hai giá trị ở giữa bằng nhau, hệ thống sẽ dùng giá trị trung bình của hai giá trị đó. |
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-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThe pyramiding policy determines how reduced-resolution versions of image bands are created, impacting the representation of pixel values at lower resolutions.\u003c/p\u003e\n"],["\u003cp\u003eBy default, the \u003ccode\u003eMEAN\u003c/code\u003e policy is used, calculating the output pixel as the average of input pixels, weighted by their masks, ideal for continuous data like temperature.\u003c/p\u003e\n"],["\u003cp\u003eAlternative policies like \u003ccode\u003eSAMPLE\u003c/code\u003e, \u003ccode\u003eMIN\u003c/code\u003e, \u003ccode\u003eMAX\u003c/code\u003e, \u003ccode\u003eMODE\u003c/code\u003e, and \u003ccode\u003eMEDIAN\u003c/code\u003e offer different methods for pixel value determination, catering to various data types such as QA bands, categorical data, and more.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSAMPLE\u003c/code\u003e policy directly uses the upper-left input pixel for the output, suitable for non-continuous fields like date of acquisition or QA bitmask bands.\u003c/p\u003e\n"],["\u003cp\u003eUsers can choose the most appropriate policy depending on the nature of the data and desired outcome for image reduction.\u003c/p\u003e\n"]]],[],null,["# PyramidingPolicy\n\nThe algorithm to be used when creating reduced-resolution versions of an image band. By default, the mask is computed as the MEAN of the input masks, reflecting the total weight of the input data over which the requested output statistic was calculated. In the case of SAMPLE, the sampled pixel's mask is used directly.\n\n| Enums ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `PYRAMIDING_POLICY_UNSPECIFIED` | Not specified. |\n| `MEAN` | Output pixel is the mask-weighted mean of the input pixels. Should be used for direct observation results and continuous quantities like temperature. |\n| `SAMPLE` | Output pixel is identical to the upper-left input pixel. Should be used for QA/bitmask bands or other non-continuous fields like date of pixel acquisition. |\n| `MIN` | Output pixel is the minimum value of the input pixels. |\n| `MAX` | Output pixel is the maximum value of the input pixels. |\n| `MODE` | Output pixel is the mask-weighted mode of the input pixels. Should be used for landcover bands. |\n| `MEDIAN` | Output pixel is the mask-weighted median of the input pixels. In case of a tie, the mean of the middle two values is used. |"]]