ee.Kernel.sobel

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

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

코드 편집기 (JavaScript)

print('A Sobel kernel', ee.Kernel.sobel());

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

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

print('A Sobel kernel:')
pprint(ee.Kernel.sobel().getInfo())

#  Output weights matrix

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