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());