ee.Kernel.kirsch

3x3 Kirsch's Compass 가장자리 감지 커널을 생성합니다.

사용반환 값
ee.Kernel.kirsch(magnitude, normalize)커널
인수유형세부정보
magnitude부동 소수점 수, 기본값: 1각 값을 이 금액으로 조정합니다.
normalize불리언, 기본값: false커널 값을 합계 1로 정규화합니다.

코드 편집기 (JavaScript)

print('A Kirsch compass kernel', ee.Kernel.kirsch());

/**
 * Output weights matrix
 *
 * [5, -3, -3]
 * [5,  0, -3]
 * [5, -3, -3]
 */

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

print('A Kirsch compass kernel:')
pprint(ee.Kernel.kirsch().getInfo())

#  Output weights matrix

#  [5, -3, -3]
#  [5,  0, -3]
#  [5, -3, -3]