Ask Your Question
1

CvvImage on opencv 2.4 [closed]

asked 2012-10-23 10:03:19 -0600

riccardo.via gravatar image

updated 2012-10-23 15:43:39 -0600

Rui Marques gravatar image

H Hello,

I have to update a code that uses opencv 1.1 on Visual Studio 2008 using opencv 2.4 in visual studio 2010. While compiling the class CvvImage is not found as it has been cut off in the most recent versions of opencv. This was the operation the code did using CvvImage

CvvImage cvImage; 
cvImage.CopyOf(Img);
cvImage.Show(memDC.m_hDC, 0, 0, Img->width, Img->height, 0, 0);
cvImage.Destroy()

Can anyone suggest me a way to implement the same code with the newer version of opencv?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by berak
close date 2017-02-27 21:33:36.084941

Comments

Do you want to draw Img on MFC interface?

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-10-23 21:22:26 -0600 )edit

Yes! Img is converted in bitmap to make it compatible with MFC

riccardo.via gravatar imagericcardo.via ( 2012-10-24 03:11:23 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-27 09:20:34 -0600

You can copy CvvImage.cpp and CvvImage.h into your project.

edit flag offensive delete link more

Comments

1

Do not dig some 5 years old questions! It may not work now!

Balaji R gravatar imageBalaji R ( 2017-02-27 20:35:14 -0600 )edit

If I want Draw a Mat on HDC(with MFC),install of CvvImage ,what should I use now? P.S

/* draw the current image ROI to the specified rectangle of the destination DC */
    virtual void  DrawToHDC( HDC hDCDst, RECT* pDstRect );
jsxyhelu gravatar imagejsxyhelu ( 2017-02-27 23:34:23 -0600 )edit

Question Tools

Stats

Asked: 2012-10-23 10:03:19 -0600

Seen: 2,130 times

Last updated: Feb 27 '17