ee.Image.medialAxis
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 trục trung tâm rời rạc của các pixel có giá trị bằng 0 trong dải tần số đầu tiên của dữ liệu đầu vào. Đầu ra 4 dải tần:
medial – các điểm trên trục giữa, được điều chỉnh theo khoảng cách.
độ phủ – số lượng điểm hỗ trợ mỗi điểm trục giữa.
xlabel – khoảng cách ngang đến điểm nguồn cho mỗi pixel.
ylabel – khoảng cách theo chiều dọc đến điểm nguồn cho mỗi pixel.
Cách sử dụng | Giá trị trả về |
---|
Image.medialAxis(neighborhood, units) | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: image | Hình ảnh | Hình ảnh đầu vào. |
neighborhood | Số nguyên, mặc định: 256 | Kích thước vùng lân cận tính bằng pixel. |
units | Chuỗi, mặc định: "pixels" | Đơn vị của vùng lân cận, hiện chỉ hỗ trợ "pixel". |
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 discrete medial axis transform of the zero-valued pixels in the first band of an image.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a 4-band image representing medial axis points, their support, and distances to power points.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an input image, neighborhood size, and units as parameters for customization.\u003c/p\u003e\n"]]],["This function calculates the discrete medial axis of an image's zero-valued pixels. It returns an image with four bands: `medial` (medial axis points scaled by distance), `coverage` (number of supporting points), `xlabel` (horizontal distance to the power point), and `ylabel` (vertical distance to the power point). The function accepts an input image, neighborhood size (default: 256 pixels), and units (only 'pixels' supported). It is called using `Image.medialAxis()`.\n"],null,["# ee.Image.medialAxis\n\nComputes the discrete medial axis of the zero valued pixels of the first band of the input. Outputs 4 bands:\n\n\u003cbr /\u003e\n\nmedial - the medial axis points, scaled by the distance.\n\ncoverage - the number of points supporting each medial axis point.\n\nxlabel - the horizontal distance to the power point for each pixel.\n\nylabel - the vertical distance to the power point for each pixel.\n\n| Usage | Returns |\n|--------------------------------------------------|---------|\n| Image.medialAxis`(`*neighborhood* `, `*units*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|---------------------------|-----------------------------------------------------------------------|\n| this: `image` | Image | The input image. |\n| `neighborhood` | Integer, default: 256 | Neighborhood size in pixels. |\n| `units` | String, default: \"pixels\" | The units of the neighborhood, currently only 'pixels' are supported. |"]]