画像を処理するためにaccord.dllを使用しています。画像のスティッチングを行うときに 1 つの問題があります。つまり、画像の解像度が高く、1 つの画像の興味深い点が 31000 で、2 番目の画像の興味深い点が 22000 である場合です。今、CorrelationMatching を使用してこれらの点を関連付けようとしています。その時点で match() メソッドを実行すると、メモリ不足の例外のようなエラーが発生するため、これを解決するよう提案してください。
以下は、私のアプリに書かれたコードです。
//// Getting Harris points
HarrisCornersDetector harris = new HarrisCornersDetector(0.04f,700f);
harrisPoints1 = harris.ProcessImage(img1).ToArray();
harrisPoints2 = harris.ProcessImage(img2).ToArray();
CorrelationMatching matcher = new CorrelationMatching(9);
//// Here I got this type of error.
List<IntPoint[]> matches =
matcher.Match(img1, img2, harrisPoints1, harrisPoints2).ToList();
// Get the two sets of points
correlationPoints1 = matches[0];
correlationPoints2 = matches[1];