Which simple methods to speed up OpenCV code exists? [closed]

asked 2018-12-26 02:05:24 -0600

egorii gravatar image

Instead of using compiler keys such as -mfpu NEON, VFPV3, etc -O3 -compile with TBB key and using setUseOptimized(true) function, Which simple methods to speed up OpenCV code exists?

I interested more in optimizations on mobile platforms, so Which simple methods to speed up OpenCV code exists?

edit retag flag offensive reopen merge delete

Closed for the following reason too subjective and argumentative by sturkmen
close date 2020-11-09 10:37:13.815197

Comments

far too broad question ;(

berak gravatar imageberak ( 2018-12-26 02:11:29 -0600 )edit
1

Reduce the resolution of the images you are processing to the smallest acceptable size and use built-in OpenCV functions whenever possible as these are nearly all optimized under-the-hood. You can always do tricks to up-res results to original image size with relatively cheap guided filters. For example, do dense stereo or optical-flow at VGA or even QVGA and then use the fast bilateral solver to get back to original X MP resolution (with appropriate scaling). You might also be interested in the new Graph API.

Der Luftmensch gravatar imageDer Luftmensch ( 2018-12-28 10:10:22 -0600 )edit