Ask Your Question

How to include all header files in a folder

asked 2015-05-21 00:15:43 -0500

Nbb gravatar image

updated 2015-05-21 00:25:44 -0500

Hello forum,

cvtColor from this tutorial does not work even after i copy-pasted the code.

I found out that I am supposed to write #include <opencv2 imgproc="" imgproc.hpp=""> for cvtColor to work. I was hoping someone could tell me how i can include ALL header files in a specific folder. Thank you.

EDIT: Also how do i know what my current working directory is. And what does /../../ mean ? I have no clue where ../../images/Gray_Image.jpg saves the image at.

edit retag flag offensive close merge delete


  • "How to include all header files in a folder" - use: #include <opencv2/opencv.hpp> (this includes most other headers)

  • "what does /../../ mean ?" - 2 folders up. but well, you're free here to use any location you want, it's just a sample.

berak gravatar imageberak ( 2015-05-21 01:27:24 -0500 )edit

If you have ../ then you have a relative path and it means that is one folder up from the current path. see this, I think you are on Windows

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-05-21 02:26:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-21 03:46:38 -0500

Nbb gravatar image

Ah thanks for the answers, I get it now :)

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-21 00:15:43 -0500

Seen: 1,709 times

Last updated: May 21 '15