Switches between the mode, where only pure C implementations from cxcore, OpenCV etc. are used, and the mode, where IPP and MKL functions are used if available. When cvUseOptimized(0) is called, all the optimized libraries are unloaded. The function may be useful for debugging, IPP&MKL upgrade on the fly, online speed comparisons etc. Note that by default the optimized plugins are loaded, so it is not necessary to call cvUseOptimized(1) in the beginning of the program (actually, it will only increase the startup time)

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: (


public static int cvUseOptimized(
	int optimize
Visual Basic
Public Shared Function cvUseOptimized ( 
	optimize As Integer
) As Integer
Visual C++
static int cvUseOptimized(
	int optimize
static member cvUseOptimized : 
        optimize : int -> int 


Type: System..::..Int32
1 to turn on optimization, 0 to turn off

Return Value

Type: Int32
The number of optimized functions loaded

See Also