ee.Kernel.prewitt

3x3 Prewitt 가장자리 감지 커널을 생성합니다.

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

코드 편집기 (JavaScript)

print('A Prewitt kernel', ee.Kernel.prewitt());

/**
 * Output weights matrix
 *
 * [1, 0, -1]
 * [1, 0, -1]
 * [1, 0, -1]
 */

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

print('A Prewitt kernel:')
pprint(ee.Kernel.prewitt().getInfo())

# Output weights matrix

#  [1, 0, -1]
#  [1, 0, -1]
#  [1, 0, -1]