Ask Your Question
0

module.hpp vs module/module.hpp

asked 2014-07-22 06:36:08 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-07-22 06:49:45 -0600

berak gravatar image

updated 2014-07-22 06:52:20 -0600

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-22 06:36:08 -0600

Seen: 216 times

Last updated: Jul 22 '14