Commit a703df54 authored by Ilya Lavrenov's avatar Ilya Lavrenov

parallel cvtColor for MSVS and Apple

parent 2fd8ad65
......@@ -192,8 +192,11 @@ void CvtColorLoop(const Mat& src, Mat& dst, const Cvt& cvt)
{
Range range(0, src.rows);
CvtColorLoop_Invoker<Cvt> invoker(src, dst, cvt);
#if defined(_MSC_VER) || defined(__APPLE__)
parallel_for_(range, invoker);
#else
invoker(range);
// parallel_for_(range, invoker);
#endif
}
////////////////// Various 3/4-channel to 3/4-channel RGB transformations /////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment