CvvImage
代码说明:
好多opencv的应用程序界面中在MFC中显示图像,但是我发现这些显示功能大部分用到了一个叫CvvImage的类,最近使用opencv2.3.1,发现找不到这个类了。 没有具体研究过opencv ,但是opencv在MFC中显示图像需要用的一个叫做CvvImage的类的DrawToHDC()的函数,但是我在2.3.1下却怎么也没有找到这个类,和这个函数。在2.3.1的文档下没有关于这个的任何资料,不知道是不是新版本的opencv去掉了这个类,或者用其他的方式实现了。所以我需要用以前的方式实现这个类。在网上找了一些资料。发现这个问题可以这样处理。 我们可以自己建立一个CvvImage.h和一个CvvImage.cpp的文件,添加到工程中。这样我们在工程中包含上这个CvvImage.h的头文件,就可以正常的按照以前的方式使用CvvImage类将图像绘制到MFC控件中了(Many opencv application interface in the MFC display images, but I found that most of these display features used in a class called CvvImage, the recent use of opencv2.3.1, found that the class can not find. There is no specific study of the opencv, but opencv in the MFC to display the image needs to be used in a class called DrawToHDC () function, but I did not find the kind of 2.3.1 under the CvvImage, and this function. There is no information about this in the 2.3.1 document, and it is not known whether the new version of OpenCV has removed this class, or has been implemented in other ways. So I need to use the old way of this class. On the Internet for some information. Found the problem can be handled in this way. We can create a CvvImage.h and a CvvImage.cpp file, added to the project. So we in the project includes the CvvImage.h header file, you can normally use the CvvImage class in accordance with the previous way draws the image to the MFC control.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!