How opencv use openmp thread to get performance?
I have installed OpenCV 2.4.13 -D WITH_OPENMP=ON (openmp enable). I want to know built-in functions provided by opencv that use OPENMP so I can show some performance between with openmp and without openmp enabled version. Do I need to change my openCV program to run with openmp? I did not find any example program that shows how Opencv use openmp. I did grep -R '#pragma omp' in the root of the OpenCV source tree and found some of .cpp file contain "# pragma Omp parallel for". one of such file is modules/contrib/src/spinimages.cpp: #pragma omp parallel for num_threads(nthreads). when i look inside the file function void computeSpinImages(......) useed this #pragma. How can I use this function in my program .