Intel Summer School 2014

Switch branch to master.
New IPP func - ippiCopy
Conv: YUV2GRAY_420
pull/3104/head
dkanafeev 11 years ago
parent 28f3a44e33
commit 1b0f0d7ead
  1. 7
      modules/imgproc/src/color.cpp

@ -4208,7 +4208,12 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
Size dstSz(sz.width, sz.height * 2 / 3);
_dst.create(dstSz, CV_MAKETYPE(depth, dcn));
dst = _dst.getMat();
#if defined HAVE_IPP
if (ippStsNoErr == ippiCopy_8u_C1R(src.data, (int)src.step, dst.data, (int)dst.step,
ippiSize(dstSz.width, dstSz.height)))
return;
setIppErrorStatus();
#endif
src(Range(0, dstSz.height), Range::all()).copyTo(dst);
}
break;

Loading…
Cancel
Save