ee.Algorithms.CrossCorrelation
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ให้ข้อมูลเกี่ยวกับคุณภาพของการลงทะเบียนรูปภาพระหว่างรูปภาพ 2 รูปที่ลงทะเบียนร่วมกัน (ในทางทฤษฎี) อินพุตคือรูปภาพ 2 รูปที่มีจำนวนแถบเท่ากัน ฟังก์ชันนี้จะแสดงผลรูปภาพที่ประกอบด้วยแถบข้อมูล 4 แถบ 3 รายการแรกคือระยะทาง ได้แก่ deltaX, deltaY และระยะทางแบบยุคลิดสำหรับแต่ละพิกเซลใน imageA ไปยังพิกเซลที่มีค่าสัมประสิทธิ์สหสัมพันธ์ที่สอดคล้องกันสูงสุดใน imageB แถบที่ 4 คือค่าสัมประสิทธิ์สหสัมพันธ์สำหรับพิกเซลนั้น [-1 : +1]
การใช้งาน | การคืนสินค้า |
---|
ee.Algorithms.CrossCorrelation(imageA, imageB, maxGap, windowSize, maxMaskedFrac) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
imageA | รูปภาพ | รูปภาพแรกที่มี N แถบ |
imageB | รูปภาพ | รูปภาพที่ 2 ต้องมีจำนวนแถบเท่ากับรูปภาพ A |
maxGap | จำนวนเต็ม | ระยะทางที่ไกลที่สุดที่พิกเซลอาจเลื่อนใน X หรือ Y |
windowSize | จำนวนเต็ม | ขนาดของหน้าต่างที่จะเปรียบเทียบ |
maxMaskedFrac | Float, ค่าเริ่มต้น: 0 | เศษส่วนสูงสุดของพิกเซลภายในหน้าต่างสหสัมพันธ์ที่อนุญาตให้มาสก์ได้ การทดสอบนี้จะใช้กับตำแหน่งออฟเซ็ตแต่ละตำแหน่งภายในภูมิภาคการค้นหา สำหรับออฟเซ็ตแต่ละรายการ ระบบจะเปรียบเทียบแพตช์รูปภาพที่ทับซ้อนกันและคำนวณคะแนนสหสัมพันธ์ พิกเซลภายในแพตช์ที่ทับซ้อนกันเหล่านี้จะถือว่าถูกมาสก์หากแพตช์ใดแพตช์หนึ่งถูกมาสก์ในตำแหน่งนั้น หากการทดสอบล้มเหลวในสถานที่ใดก็ตามในภูมิภาคการค้นหา พิกเซลเอาต์พุตที่กำลังคำนวณความสัมพันธ์จะถือว่าไม่ถูกต้องและจะถูกมาสก์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ 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. |"]]