공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Algorithms.CrossCorrelation
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이론적으로 공동 등록된 두 이미지 간의 이미지 등록 품질에 관한 정보를 제공합니다. 입력은 밴드 수가 동일한 두 이미지입니다. 이 함수는 4개의 정보 대역으로 구성된 이미지를 출력합니다. 처음 세 개는 거리입니다. imageA의 각 픽셀에서 imageB의 해당 상관 계수가 가장 높은 픽셀까지의 deltaX, deltaY, 유클리드 거리입니다. 네 번째 밴드는 해당 픽셀의 상관 계수 값입니다[-1 : +1].
사용 | 반환 값 |
---|
ee.Algorithms.CrossCorrelation(imageA, imageB, maxGap, windowSize, maxMaskedFrac) | 이미지 |
인수 | 유형 | 세부정보 |
---|
imageA | 이미지 | N개의 밴드가 있는 첫 번째 이미지입니다. |
imageB | 이미지 | 두 번째 이미지로, imageA와 밴드 수가 동일해야 합니다. |
maxGap | 정수 | 픽셀이 X 또는 Y 방향으로 이동할 수 있는 최대 거리입니다. |
windowSize | 정수 | 비교할 창의 크기입니다. |
maxMaskedFrac | 부동 소수점 수, 기본값: 0 | 상관관계 창 내에서 마스크 처리될 수 있는 최대 픽셀 비율입니다. 이 테스트는 검색 영역 내의 각 오프셋 위치에 적용됩니다. 각 오프셋에 대해 중복되는 이미지 패치가 비교되고 상관관계 점수가 계산됩니다. 이러한 중복 패치 내의 픽셀은 패치 중 하나라도 마스크 처리된 경우 마스크 처리된 것으로 간주됩니다. 검색 지역의 단일 위치에서 테스트가 실패하면 상관관계가 계산되는 출력 픽셀이 무효한 것으로 간주되어 마스크 처리됩니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eDetermines the image registration quality between two images with the same number of bands by calculating pixel displacement and correlation.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a four-band image representing deltaX, deltaY, Euclidean distance, and correlation coefficient for each pixel.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the maximum pixel shift (\u003ccode\u003emaxGap\u003c/code\u003e), comparison window size (\u003ccode\u003ewindowSize\u003c/code\u003e), and the allowed fraction of masked pixels (\u003ccode\u003emaxMaskedFrac\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe algorithm identifies the pixel in the second image with the highest correlation to the corresponding pixel in the first image.\u003c/p\u003e\n"],["\u003cp\u003eInvalid pixels are masked if the maximum allowed fraction of masked pixels is exceeded during correlation calculations.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.CrossCorrelation\n\nGives information on the quality of image registration between two (theoretically) co-registered images. The input is two images with the same number of bands. This function outputs an image composed of four bands of information. The first three are distances: the deltaX, deltaY, and the Euclidean distance for each pixel in imageA to the pixel which has the highest corresponding correlation coefficient in imageB. The fourth band is the value of the correlation coefficient for that pixel \\[-1 : +1\\].\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------|---------|\n| `ee.Algorithms.CrossCorrelation(imageA, imageB, maxGap, windowSize, `*maxMaskedFrac*`)` | Image |\n\n| Argument | Type | Details |\n|-----------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `imageA` | Image | First image, with N bands. |\n| `imageB` | Image | Second image, must have the same number of bands as imageA. |\n| `maxGap` | Integer | The greatest distance a pixel may shift in either X or Y. |\n| `windowSize` | Integer | Size of the window to be compared. |\n| `maxMaskedFrac` | Float, default: 0 | The maximum fraction of pixels within the correlation window that are allowed to be masked. This test is applied at each offset location within the search region. For each offset, the overlapping image patches are compared and a correlation score computed. A pixel within these overlapping patches is considered masked if either of the patches is masked there. If the test fails at any single location in the search region, the output pixel for which the correlation is being computed is considered invalid, and will be masked. |"]]