Opencvsharp 从 IplImage 到位图

Opencvsharp from IplImage to Bitmap

我正在使用 vs 2013,我有一个来自 nuget 的 opencvsharp 2* 我有这些代码:

 public List<IplImage> text = new List<IplImage>();
 ...
 IplImage bit = text[0];
 picturebox.Image = text[0].ToBitmap();

但是这行不被接受:

picturebox.Image = text[0].ToBitmap();

ToBitmap 永远不会出现 有帮助吗?

使用 OpenCvSharp3Mat 实例和 OpenCvSharp.Extensions.BitmapConverter.ToBitmap() 扩展方法。 OpenCvSharp2 项目已过时。

OpenCvSharp2相关引述README.md:

#OpenCvSharp 2.4.10 Cross platform wrapper of OpenCV 2.4.10 for .NET Framework.

This project is deprecated. The latest release is available in OpenCvSharp.

请参阅 OpenCV: IplImage versus Mat, which to use? thread and Mat - The Basic Image Container 文档页面。