ee.Algorithms.CrossCorrelation
Gives 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].
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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Determines the image registration quality between two images with the same number of bands by calculating pixel displacement and correlation."],["Outputs a four-band image representing deltaX, deltaY, Euclidean distance, and correlation coefficient for each pixel."],["Users can define the maximum pixel shift (`maxGap`), comparison window size (`windowSize`), and the allowed fraction of masked pixels (`maxMaskedFrac`)."],["The algorithm identifies the pixel in the second image with the highest correlation to the corresponding pixel in the first image."],["Invalid pixels are masked if the maximum allowed fraction of masked pixels is exceeded during correlation calculations."]]],[]]