Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.Algorithms.CrossCorrelation Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Assesses image registration quality between two input images with the same number of bands.
Outputs a four-band image containing deltaX, deltaY, Euclidean distance, and the correlation coefficient for each pixel.
Takes input parameters including the two images, maximum allowed pixel shift (maxGap), the comparison window size (windowSize), and an optional maximum fraction of masked pixels allowed (maxMaskedFrac).
| Usage | Returns |
|---|---|
ee.Algorithms.CrossCorrelation(imageA, imageB, maxGap, windowSize,maxMaskedFrac) | Image |
| Argument | Type | Details |
|---|---|---|
imageA | Image | First image, with N bands. |
imageB | Image | Second image, must have the same number of bands as imageA. |
maxGap | Integer | The greatest distance a pixel may shift in either X or Y. |
windowSize | Integer | Size of the window to be compared. |
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. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.