First time here? Check out the FAQ!

Ask Your Question
0

Conversion from IplImage to Mat

asked Jan 4 '13

thomas11 gravatar image

Dear all,

It is simple but can't make it through. I convert to Mat from IplImage

IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1);

opcvImg = ImageQueue::getQueue();

Mat original(opcvImg, true);

After this, when I see the original in the watch window, it shows unavailable. I did in Ubuntu. What could be the problem? Thanks

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Jan 4 '13

Haris gravatar image

You can refer OpenCV C++ Cheatsheet, it may be helpful.

Preview: (hide)

Question Tools

Stats

Asked: Jan 4 '13

Seen: 3,013 times

Last updated: Jan 04 '13