ee.Image.spectralDilation
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.
Tính toán độ giãn nở quang phổ/không gian của một hình ảnh bằng cách tính toán khoảng cách quang phổ của từng pixel trong một hạt nhân cấu trúc từ tâm của tất cả các pixel trong hạt nhân và lấy kết quả xa nhất. Xem "Trích xuất thành phần cuối không gian/phổ bằng các phép toán hình thái học đa chiều". IEEE transactions on geoscience and remote sensing 40.9 (2002): 2025-2041.
Cách sử dụng | Giá trị trả về |
---|
Image.spectralDilation(metric, kernel, useCentroid) | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: image | Hình ảnh | Hình ảnh đầu vào. |
metric | Chuỗi, mặc định: "sam" | Chỉ số khoảng cách quang phổ cần sử dụng. Một trong các giá trị "sam" (spectral angle mapper), "sid" (spectral information divergence), "sed" (squared Euclidean distance) hoặc "emd" (earth movers distance). |
kernel | Kernel, mặc định: null | Hạt nhân kết nối. Mặc định là hình vuông có bán kính 1 (kết nối 8 hướng). |
useCentroid | Boolean, mặc định: false | Nếu đúng, khoảng cách sẽ được tính từ giá trị trung bình của tất cả các pixel trong nhân thay vì pixel trung tâm của nhân. |
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\u003eComputes the spectral/spatial dilation of an image based on the spectral distance of pixels within a kernel.\u003c/p\u003e\n"],["\u003cp\u003eUses a specified spectral distance metric (SAM, SID, SED, or EMD) to calculate distances.\u003c/p\u003e\n"],["\u003cp\u003eOffers options to define the kernel shape and whether to use the centroid or center pixel for distance calculations.\u003c/p\u003e\n"],["\u003cp\u003eOutputs an image representing the spectral dilation result.\u003c/p\u003e\n"]]],[],null,["# ee.Image.spectralDilation\n\nComputes the spectral/spatial dilation of an image by computing the spectral distance of each pixel under a structuring kernel from the centroid of all pixels under the kernel and taking the most distant result. See 'Spatial/spectral endmember extraction by multidimensional morphological operations.' IEEE transactions on geoscience and remote sensing 40.9 (2002): 2025-2041.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------|---------|\n| Image.spectralDilation`(`*metric* `, `*kernel* `, `*useCentroid*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The input image. |\n| `metric` | String, default: \"sam\" | The spectral distance metric to use. One of 'sam' (spectral angle mapper), 'sid' (spectral information divergence), 'sed' (squared Euclidean distance), or 'emd' (earth movers distance). |\n| `kernel` | Kernel, default: null | Connectedness kernel. Defaults to a square of radius 1 (8-way connected). |\n| `useCentroid` | Boolean, default: false | If true, distances are computed from the mean of all pixels under the kernel instead of the kernel's center pixel. |"]]