开发者

OpenCV - How to defined a variable of type CvvImage in Opencv 2.3?

开发者 https://www.devze.com 2023-04-07 16:18 出处:网络
I\'m writing a program to capture image frames from a camera and to dispay them on the MFCpicture control window. My program is using MFC in OpenCV 2.3 and Visual studio 2010.

I'm writing a program to capture image frames from a camera and to dispay them on the MFC picture control window. My program is using MFC in OpenCV 2.3 and Visual studio 2010.

but I am not able to use the function CvvImage. It says it is undefined. This function comes under the highgui.h header file. When I check the header file and compared it with Opencv 1.0 I saw that this function is not defined here.

When I use this program on opencv 1.0 and visual studio 2008 it works fine. and executes. but using visual studio 2010 and opencv 2.3 it is not defined.

please help use the CvvImage or tell me the equivalent used in opencv 2.3.

I do no want to use Ipl开发者_JAVA技巧Image. because then I am not able to place my image frame on the MFC picture control window.

Thank you


WEll after many days thinking i finally got the answer.

What we need to do it to add a class CvvImage.cpp and the header file CvvImage.h to the open cv directory.

and in the main program we need to define #include "CvvImage.h"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号