Ask Your Question
0

cv::setUseOptimized(), optimizations

asked 2019-04-22 07:39:57 -0600

BuenaVentura gravatar image

I am using SGBM algorithm for calculating the disparity map. However, I would like to measure it's true performance without including SIMD support (none of SSE, AVX etc.). Is it possible? I tried to setUseOptimized(false) but I do not see any difference in runtime between setting it to true and false. Is it normal? Is there a better way to deactivate SIMD support and in general optimizations? What other optimization are automatically performed?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2019-04-23 05:40:44 -0600

mshabunin gravatar image

Not all optimized functions have runtime switches. You can disable optimizations completely during build -DCV_DISABLE_OPTIMIZATION=ON cmake parameter.

edit flag offensive delete link more

Comments

Thank you, is there any way to access SGBM code and see if it has runtime switches? Also could you tell me what other common optimizations are out there that I should take into consideration?

BuenaVentura gravatar imageBuenaVentura ( 2019-04-23 05:43:59 -0600 )edit

https://github.com/opencv/opencv/blob... Looks like runtime switch does not work there.

mshabunin gravatar imagemshabunin ( 2019-04-23 06:06:16 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-04-22 07:39:57 -0600

Seen: 954 times

Last updated: Apr 23 '19