【发布时间】:2014-04-03 18:54:06
【问题描述】:
我正在为图像拼接运行 EmguCV 示例。以下是该示例中的重要代码:
try
{
using (Stitcher stitcher = new Stitcher(false))
{
Image<Bgr, Byte> result = stitcher.Stitch(sourceImages);
IMGBXDisplayStitched.Image = result;
}
}
finally
{
foreach (Image<Bgr, Byte> img in sourceImages)
{
img.Dispose();
}
}
效果很好,但是当我将Stitcher()的值改为true(我想使用GPU)时,它显示了这个错误:
Emgu.CV.dll 中出现“Emgu.CV.Util.CvException”类型的未处理异常 附加信息:OpenCV:您应该显式调用 gpu::GpuMat 对象的下载方法
我该如何解决这个问题?
【问题讨论】:
-
异常发生在哪一行?
标签: c# runtime-error emgucv image-stitching