Ask Your Question
0

where is the typedef struct definition for C's CvHaarClassifierCascade in the OpenCV 2.4.6.1 folder

asked 2013-10-19 13:03:32 -0500

joeish80829 gravatar image

updated 2013-10-19 13:39:25 -0500

berak gravatar image

I grepped everywhere for it(on Ubuntu raring) the closest I found was in this .hpp file

./objdetect/include/opencv2/objdetect/objdetect.hpp:

but from what I understand thats C++ right

i found it here http://opencv.jp/opencv-2.2_org/c/objdetect_cascade_classification.html?highlight=cvhaarclassifiercascade#CvHaarClassifierCascade

can I just grab the typedef struct there and use it....if so where do i put it like i/e core_c.h?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-19 13:47:07 -0500

Moster gravatar image

updated 2013-10-19 13:48:59 -0500

The file objdetect.hpp is the correct file. You shouldnt get distracted by the file extension of the header. A modern compiler should not get affected by this. With gcc you can also call your extension .banana and it would still compile :) Also, you should read about the use of extern "C" here: http://stackoverflow.com/questions/1041866/in-c-source-what-is-the-effect-of-extern-c

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-10-19 13:03:32 -0500

Seen: 126 times

Last updated: Oct 19 '13