Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Should I include opencv2/opencv.hpp?

Most of the OpenCV tutorials I've watching have only one include statement #include opencv2/opencv.hpp

But I'm not sure if this is the best way to do things or just the easy way, it seems like this include statement just includes everything whether I need it or not. Would it speed up my program if I only added the header files that I needed? If so, how can I find out what header files the function in my program are in? The OpenCV documentation doesn't seem to give that information.

Thank You

Should I include opencv2/opencv.hpp?

Most of the OpenCV tutorials I've watching have only one include statement #include opencv2/opencv.hpp

But I'm not sure if this is the best way to do things or just the easy way, it seems like this include statement just includes everything whether I need it or not. Would it speed up my program if I only added the header files that I needed? If so, how can I find out what header files the function functions in my program are in? The OpenCV documentation doesn't seem to give that information.

Thank You