Ask Your Question
0

module.hpp vs module/module.hpp

asked Jul 22 '14

kovand11 gravatar image

Im working with the latest OpenCV form the master branch.

What is the difference between (for example):

include <opencv2 imgproc.hpp="">

//and

include <opencv2 imgproc="" imgproc.hpp="">

Is it safe, to use both a stable opencv from ubuntu repo, and a self built one?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jul 22 '14

berak gravatar image

updated Jul 22 '14

the 'client api' module headers got moved one up in 3.0, opencv2/core/core.hpp is now opencv2/core.hpp.

  • for 3.0, both are safe to use, since the actual opencv2/core/core.hpp references opencv2/core.hpp
  • for 2.4, you can only use opencv2/core/core.hpp

so, if you switch branches often, it's probably best to keep the old convention.

Preview: (hide)

Question Tools

Stats

Asked: Jul 22 '14

Seen: 246 times

Last updated: Jul 22 '14