Ask Your Question
0

How to include all header files in a folder

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

Nbb gravatar image

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

Hello forum,

cvtColor from this tutorial http://docs.opencv.org/doc/tutorials/... 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

Comments

1
  • "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 -0600 )edit
1

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

Nbb gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 2,533 times

Last updated: May 21 '15