공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Classifier.spectralRegion
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
임의 2D 좌표계에서 좌표 집합으로 정의된 다각형 내에 입력이 있는지 테스트하는 분류기를 만듭니다. 분류할 각 입력에는 2개의 값이 있어야 합니다 (예: 이미지에는 2개의 밴드가 있어야 함). 입력 값이 지정된 다각형 내에 포함된 경우 결과는 1이고 그렇지 않은 경우 0입니다.
사용 | 반환 값 |
---|
ee.Classifier.spectralRegion(coordinates, schema) | 분류기 |
인수 | 유형 | 세부정보 |
---|
coordinates | 목록 | 다각형의 좌표입니다(링 목록). 각 고리는 좌표 쌍 목록입니다 (예: [u1, v1, u2, v2, ..., uN, vN]). 어떤 변도 다른 변과 교차해서는 안 됩니다. 결과 분류는 입력 값이 지정된 다각형 내부에 있는 경우 1이 됩니다. 즉, 다각형 외부로 나가려면 홀수 개의 다각형 모서리를 교차해야 합니다. 그 외의 경우에는 0이 됩니다. |
schema | 목록, 기본값: null | 분류기의 스키마입니다. 분류기가 작동할 밴드 또는 속성 이름 목록입니다. 이 분류기는 학습 단계를 거치지 않으므로 이러한 항목을 수동으로 지정해야 합니다. 기본값은 ['u', 'v']입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eCreates a classifier to determine if input data points, represented by two values, fall within a defined polygon.\u003c/p\u003e\n"],["\u003cp\u003eThe classifier uses a polygon defined by a set of coordinates in a 2D coordinate system.\u003c/p\u003e\n"],["\u003cp\u003eInput data, such as images with two bands, is classified as 1 if inside the polygon and 0 if outside.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify the polygon coordinates and optionally define a schema for the classifier's input bands or properties.\u003c/p\u003e\n"]]],[],null,["# ee.Classifier.spectralRegion\n\nCreates a classifier that tests if its inputs lie within a polygon defined by a set of coordinates in an arbitrary 2D coordinate system. Each input to be classified must have 2 values (e.g., images must have 2 bands). The result will be 1 wherever the input values are contained within the given polygon and 0 otherwise.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------|------------|\n| `ee.Classifier.spectralRegion(coordinates, `*schema*`)` | Classifier |\n\n| Argument | Type | Details |\n|---------------|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The coordinates of the polygon, as a list of rings. Each ring is a list of coordinate pairs (e.g., \\[u1, v1, u2, v2, ..., uN, vN\\]). No edge may intersect any other edge. The resulting classification will be a 1 wherever the input values are within the interior of the given polygon, that is, an odd number of polygon edges must be crossed to get outside the polygon and 0 otherwise. |\n| `schema` | List, default: null | The classifier's schema. A list of band or property names that the classifier will operate on. Since this classifier doesn't undergo a training step, these have to be specified manually. Defaults to \\['u', 'v'\\]. |"]]