1

我正在使用accord.dll 来处理图像。我在进行图像拼接时遇到了一个问题,即如果图像分辨率很高,并且我得到一张图像的有趣点是 31000,而第二张图像的有趣点是 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];
4

0 回答 0