engineerkino / cvblob

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

CvLabel not defined in IPL_DEPTH_LABEL when NOT using namespace cvb #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new cvb (opencv) project.
2. Do not include the cvb namespace in it.
3. Add the following line :
IplImage* labelImg = cvCreateImage(cvGetSize(img), IPL_DEPTH_LABEL, 1);
4. Will not compile :
error C2065: 'CvLabel' : undeclared identifier

What version of the product are you using? On what operating system?
Revision 272 from SVN. Compiler VS2010, Windows 7.

Please provide any additional information below.
In cvblob.h, changing the line :

#define IPL_DEPTH_LABEL (sizeof(CvLabel)*8)
to :
#define IPL_DEPTH_LABEL (sizeof(cvb::CvLabel)*8)

should fix the problem.

Original issue reported on code.google.com by recastro...@gmail.com on 21 Nov 2010 at 3:21

GoogleCodeExporter commented 8 years ago
Thank you very much!

I've just fixed that in the repository. The changes will go in the next release.

Thank you again for the report.

Original comment by grendel....@gmail.com on 21 Nov 2010 at 6:33

GoogleCodeExporter commented 8 years ago
That's what I call a fast fix !
Thanks for the fix and more importantly for the good library !

Original comment by recastro...@gmail.com on 21 Nov 2010 at 6:46