parallel cvtColor for MSVS and Apple

This commit is contained in:
Ilya Lavrenov 2012-10-05 13:11:24 +04:00
parent 2fd8ad65b9
commit a703df5456

View File

@ -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 /////////////////