CvInvokeUseOptimized Property |
http://www.emgu.com
Enables or disables the optimized code.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static bool UseOptimized { get; set; }
Public Shared Property UseOptimized As Boolean
Get
Set
public:
static property bool UseOptimized {
bool get ();
void set (bool value);
}
static member UseOptimized : bool with get, set
Property Value
Type:
Booleantrue if [use optimized]; otherwise,
false.
RemarksThe 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.
See Also