Ask Your Question
0

cv::Mat to hBitmap

asked 2014-05-03 05:13:52 -0600

Stoo gravatar image

updated 2014-05-03 06:16:14 -0600

berak gravatar image

Hello,

I need to transform a cv:Mat picture into a Bitmap or hBitmap, in order to display it inside of a Picture Control, for a MFC application (C++). I searched online; but what i found is mainly for IplImage. Any suggestions?

Thanks Beforehand =)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-13 09:33:58 -0600

I posted an example of how to do this on Gist at GitHub

Have a look and see if this helps you.

edit flag offensive delete link more
0

answered 2014-05-03 08:24:04 -0600

You can find a solution from background subtraction MFC application here. In the application, the authors use Picture control to display images read from video or image sequence and it is not very difficult to custom it to meet your requirement.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-03 05:13:52 -0600

Seen: 5,465 times

Last updated: May 03 '14