Ask Your Question
1

Is there an advantage to building opencv yourself?

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

SpacePirate gravatar image

updated 2020-09-06 10:11:33 -0600

Hi,

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

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
5

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

mshabunin gravatar image

__Advantages:__

  • 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

__Disadvantages:__

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

Comments

thank you :)

SpacePirate gravatar imageSpacePirate ( 2017-10-14 02:08:33 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 1,232 times

Last updated: Oct 13 '17