공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Image.eq
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
image1과 image2의 일치하는 각 밴드 쌍에 대해 첫 번째 값이 두 번째 값과 같은 경우에만 1을 반환합니다. image1 또는 image2에 밴드가 하나만 있는 경우 다른 이미지의 모든 밴드에 대해 사용됩니다. 이미지의 밴드 수가 동일하지만 이름이 동일하지 않은 경우 자연스러운 순서로 쌍을 이루어 사용됩니다. 출력 밴드는 두 입력 중 더 긴 입력의 이름을 따서 지정되며, 길이가 같은 경우 image1의 순서로 지정됩니다. 출력 픽셀의 유형은 불리언입니다.
사용 | 반환 값 |
---|
Image.eq(image2) | 이미지 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: image1 | 이미지 | 왼쪽 피연산자 밴드를 가져올 이미지입니다. |
image2 | 이미지 | 오른쪽 피연산자 밴드를 가져올 이미지입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eCompares corresponding bands in two images for equality, returning 1 if they match and 0 otherwise.\u003c/p\u003e\n"],["\u003cp\u003eHandles single-band images by comparing against all bands of the other image.\u003c/p\u003e\n"],["\u003cp\u003eOutput image bands are named based on the input image with more bands, or \u003ccode\u003eimage1\u003c/code\u003e's order if band counts are equal.\u003c/p\u003e\n"],["\u003cp\u003eResulting image has boolean pixel type indicating equality (1) or inequality (0) for each band comparison.\u003c/p\u003e\n"]]],["The `eq()` function compares two images (`image1` and `image2`) band-by-band for equality. It returns an image where each pixel is `true` if the corresponding bands are equal, otherwise `false`. If one image has a single band, it's compared to all bands of the other. Bands are paired by name if possible or by natural order if band names differ and band counts are identical. Output band names are based on the longer input image, and the output pixel type is boolean.\n"],null,["# ee.Image.eq\n\nReturns 1 if and only if the first value is equal to the second for each matched pair of bands in image1 and image2. If either image1 or image2 has only 1 band, then it is used against all the bands in the other image. If the images have the same number of bands, but not the same names, they're used pairwise in the natural order. The output bands are named for the longer of the two inputs, or if they're equal in length, in image1's order. The type of the output pixels is boolean.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------|---------|\n| Image.eq`(image2)` | Image |\n\n| Argument | Type | Details |\n|----------------|-------|---------------------------------------------------------|\n| this: `image1` | Image | The image from which the left operand bands are taken. |\n| `image2` | Image | The image from which the right operand bands are taken. |"]]