Sets the number of threads that are used by parallelized OpenCV functions.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvSetNumThreads(
	int threadsCount
)
Public Shared Sub cvSetNumThreads ( _
	threadsCount As Integer _
)
public:
static void cvSetNumThreads(
	int threadsCount
)

Parameters

threadsCount
Int32
The number of threads that are used by parallelized OpenCV functions. When the argument is zero or negative, and at the beginning of the program, the number of threads is set to the number of processors in the system, as returned by the function omp_get_num_procs() from OpenMP runtime.

See Also