我正在为图像拼接运行 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 对象的下载方法
我该如何解决这个问题?