ee.Kernel.roberts

2x2 Roberts 가장자리 감지 커널을 생성합니다.

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

코드 편집기 (JavaScript)

print('A Roberts kernel', ee.Kernel.roberts());

/**
 * Output weights matrix; center is position [1,1]
 *
 * [1,  0]
 * [0, -1]
 */

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

print('A Roberts kernel:')
pprint(ee.Kernel.roberts().getInfo())

#  Output weights matrix; center is position [1,1]

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