Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Algorithms.CrossCorrelation
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memberikan informasi tentang kualitas pendaftaran gambar antara dua gambar yang (secara teoretis) terdaftar bersama. Inputnya adalah dua gambar dengan jumlah band yang sama. Fungsi ini menghasilkan gambar yang terdiri dari empat band informasi. Tiga yang pertama adalah jarak: deltaX, deltaY, dan jarak Euclidean untuk setiap piksel di imageA ke piksel yang memiliki koefisien korelasi tertinggi yang sesuai di imageB. Band keempat adalah nilai koefisien korelasi untuk piksel tersebut [-1 : +1].
Penggunaan | Hasil |
---|
ee.Algorithms.CrossCorrelation(imageA, imageB, maxGap, windowSize, maxMaskedFrac) | Gambar |
Argumen | Jenis | Detail |
---|
imageA | Gambar | Gambar pertama, dengan N band. |
imageB | Gambar | Gambar kedua, harus memiliki jumlah band yang sama dengan imageA. |
maxGap | Bilangan Bulat | Jarak terjauh piksel dapat bergeser di X atau Y. |
windowSize | Bilangan Bulat | Ukuran jendela yang akan dibandingkan. |
maxMaskedFrac | Float, default: 0 | Fraksi maksimum piksel dalam jendela korelasi yang boleh ditutupi. Pengujian ini diterapkan di setiap lokasi offset dalam wilayah penelusuran. Untuk setiap offset, patch gambar yang tumpang-tindih dibandingkan dan skor korelasi dihitung. Piksel dalam patch yang tumpang-tindih ini dianggap tertutup jika salah satu patch tertutup di sana. Jika pengujian gagal di satu lokasi mana pun di wilayah penelusuran, piksel output yang korelasinya sedang dihitung dianggap tidak valid, dan akan ditutup-tutupi. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]