dimonk33 / cvblob

Automatically exported from code.google.com/p/cvblob
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Problem with cv::Mat and IplImage #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to stick to the rules of OpenCV 2.1 and using cv::Mat instead of 
IplImage.
2. Feeding cvLabel() with a cv::Mat doesn't work, converting the mat to and 
IplImage also doesn't work because of the const parameter needed.

What is the expected output? What do you see instead?
I think it should either work with cv::Mat or IplImage without a need for the 
cast!?

What version of the product are you using? On what operating system?
OpenCV 2.1 on OSX, latest cvBlob release.

Please provide any additional information below.

Original issue reported on code.google.com by christop...@gtempaccount.com on 22 Nov 2010 at 5:58

GoogleCodeExporter commented 9 years ago
Sorry, my fault. I was too stupid to dereference the pointer... ;)

Original comment by christop...@gtempaccount.com on 23 Nov 2010 at 9:45

GoogleCodeExporter commented 9 years ago
Hi Christoph!

Actually, I've never have used `cv::Mat` :-S 

Can you confirm it works with cvBlob functions?

Thank you very much!

Original comment by grendel....@gmail.com on 23 Nov 2010 at 10:08

GoogleCodeExporter commented 9 years ago
Yes, it does. You just need to assign an IplImage the cv::Mat (like really just 
assign it), and use it. It's even on the cheatsheet 
(http://opencv.willowgarage.com/documentation/cpp/c++_cheatsheet.html).

Cheers,
Christoph

Original comment by christop...@gtempaccount.com on 24 Nov 2010 at 10:28