Ask Your Question

where is the typedef struct definition for C's CvHaarClassifierCascade in the OpenCV 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


but from what I understand thats C++ right

i found it here

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

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:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


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

Seen: 126 times

Last updated: Oct 19 '13