Ask Your Question

module.hpp vs module/module.hpp

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

kovand11 gravatar image

Im working with the latest OpenCV form the master branch.

What is the difference between (for example):

include <opencv2 imgproc.hpp="">


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

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

berak gravatar image

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

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


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

Seen: 174 times

Last updated: Jul 22 '14