setUseOptimized (cv.Utils) - MATLAB File Help |
Enables or disables the optimized code
cv.Utils.setUseOptimized(tf)
The function can be used to dynamically turn on and off
optimized code (code that uses SSE2, AVX, and other instructions
on the platforms that support it). It sets a global flag that is
further checked by OpenCV functions. Since the flag is not
checked in the inner OpenCV loops, it is only safe to call the
function on the very top level in your application where you can
be sure that no other OpenCV function is currently executed. By
default, the optimized code is enabled unless you disable it in
CMake. The current status can be retrieved using useOptimized
.
Access | public |
Sealed | false |
Static | true |