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]