お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
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 番目の画像。imageA と同じ数のバンドが必要です。 |
maxGap | Integer | X または Y のいずれかでピクセルがシフトする最大距離。 |
windowSize | Integer | 比較するウィンドウのサイズ。 |
maxMaskedFrac | 浮動小数点数、デフォルト: 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. |"]]