공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Kernel.laplacian4
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
3x3 라플라시안-4 가장자리 감지 커널을 생성합니다.
사용 | 반환 값 |
---|
ee.Kernel.laplacian4(magnitude, normalize) | 커널 |
인수 | 유형 | 세부정보 |
---|
magnitude | 부동 소수점 수, 기본값: 1 | 각 값을 이 금액으로 조정합니다. |
normalize | 불리언, 기본값: false | 커널 값을 합계 1로 정규화합니다. |
예
코드 편집기 (JavaScript)
print('A Laplacian-4 kernel', ee.Kernel.laplacian4());
/**
* Output weights matrix
*
* [0, 1, 0]
* [1, -4, 1]
* [0, 1, 0]
*/
Python 설정
Python API 및 geemap
를 사용한 대화형 개발에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
from pprint import pprint
print('A Laplacian-4 kernel:')
pprint(ee.Kernel.laplacian4().getInfo())
# Output weights matrix
# [0, 1, 0]
# [1, -4, 1]
# [0, 1, 0]
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],["The `ee.Kernel.laplacian4()` function generates a 3x3 Laplacian-4 edge-detection kernel. It accepts `magnitude` (float, default 1) to scale kernel values and `normalize` (boolean, default false) to normalize values to sum to 1. The function returns a kernel represented by the weights matrix: `[[0, 1, 0], [1, -4, 1], [0, 1, 0]]`. `magnitude` allows for customization of the kernel's sensitivity.\n"],null,[]]