Ask Your Question

Is there an advantage to building opencv yourself?

asked 2017-10-13 04:08:25 -0500

SpacePirate gravatar image


Other than being able to get correction before the release. Does code compiled on your computer is faster than code compiled elsewhere?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-10-13 05:49:01 -0500

mshabunin gravatar image


  • you can build OpenCV better optimized for this machine (cmake variables CPU_BASELINE and CPU_DISPATCH) - read more here, by default we use SSSE3 as baseline
  • you can build only limited subset of a library (just opencv_core and opencv_imgproc for example), can compose it into a single opencv_world.dll binary, make it static or dynamic
  • you can choose different options for video backends, parallel_for backend, windows backends, OpenCL, OpenGL support and many others
  • build modules which are not provided in default distributions: opencv_viz, all CUDA modules, all opencv_contrib modules
  • replace subset of functionality with your own functions via HAL (read more here)
  • you can built accuracy and performance tests and check how good does your platform perform basic operations before experimenting with complex algorithms


  • you need some free time for this
edit flag offensive delete link more


thank you :)

SpacePirate gravatar imageSpacePirate ( 2017-10-14 02:08:33 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-10-13 04:08:25 -0500

Seen: 437 times

Last updated: Oct 13 '17