Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use cv::parallel_for_, not cv::parallel_for (it is old implementation):

class Parallel_Test : public cv::ParallelLoopBody
{
    void operator() (const cv::Range& range) const
    {
         // your code
    }
};

cv::parallel_for_(cv::Range(0, 1000000), Parallel_Test());