공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Image.focalMode
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이름이 지정된 커널 또는 맞춤 커널을 사용하여 이미지의 각 밴드에 형태학적 리듀서() 필터를 적용합니다.
사용 | 반환 값 |
---|
Image.focalMode(radius, kernelType, units, iterations, kernel) | 이미지 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: image | 이미지 | 작업을 적용할 이미지입니다. |
radius | 부동 소수점 수, 기본값: 1.5 | 사용할 커널의 반지름입니다. |
kernelType | 문자열, 기본값: 'circle' | 사용할 커널 유형입니다. 옵션에는 '원', '사각형', '십자', '더하기', '팔각형', '다이아몬드'가 포함됩니다. |
units | 문자열, 기본값: 'pixels' | 커널이 지정되지 않은 경우 커널이 미터 단위인지 픽셀 단위인지 결정합니다. |
iterations | 정수, 기본값: 1 | 지정된 커널을 적용할 횟수입니다. |
kernel | 커널, 기본값: null | 맞춤 커널 사용되는 경우 kernelType과 radius는 무시됩니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eApplies a morphological reducer filter to each band of an image using a pre-defined or custom kernel.\u003c/p\u003e\n"],["\u003cp\u003eThe filter can be customized using parameters such as radius, kernel type, units, and iterations.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define their own kernel, overriding the default options of kernel type and radius.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a modified image after applying the specified operations.\u003c/p\u003e\n"]]],["The `focalMode()` function applies a morphological reducer filter to an image's bands. It uses a specified `kernelType` (circle, square, etc.) or a custom `kernel`, with a defined `radius` and measurement `units` (pixels or meters). The operation can be repeated `iterations` times. If a custom `kernel` is provided, the `kernelType` and `radius` are ignored. The function returns a new image with the filter applied.\n"],null,["# ee.Image.focalMode\n\nApplies a morphological reducer() filter to each band of an image using a named or custom kernel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------|---------|\n| Image.focalMode`(`*radius* `, `*kernelType* `, `*units* `, `*iterations* `, `*kernel*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------------------------|------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to which to apply the operations. |\n| `radius` | Float, default: 1.5 | The radius of the kernel to use. |\n| `kernelType` | String, default: \"circle\" | The type of kernel to use. Options include: 'circle', 'square', 'cross', 'plus', 'octagon', and 'diamond'. |\n| `units` | String, default: \"pixels\" | If a kernel is not specified, this determines whether the kernel is in meters or pixels. |\n| `iterations` | Integer, default: 1 | The number of times to apply the given kernel. |\n| `kernel` | Kernel, default: null | A custom kernel. If used, kernelType and radius are ignored. |"]]