Fix issue #5234 (UMat::convertTo when noScale)

This commit is contained in:
Philippe FOUBERT 2015-08-22 13:16:59 +02:00
parent 680efe1a97
commit 0629add3f7

View File

@ -744,7 +744,7 @@ void UMat::convertTo(OutputArray _dst, int _type, double alpha, double beta) con
char cvt[2][40];
ocl::Kernel k("convertTo", ocl::core::convert_oclsrc,
format("-D srcT=%s -D WT=%s -D dstT=%s -D convertToWT=%s -D convertToDT=%s%s",
format("-D srcT=%s -D WT=%s -D dstT=%s -D convertToWT=%s -D convertToDT=%s%s%s",
ocl::typeToStr(sdepth), ocl::typeToStr(wdepth), ocl::typeToStr(ddepth),
ocl::convertTypeStr(sdepth, wdepth, 1, cvt[0]),
ocl::convertTypeStr(wdepth, ddepth, 1, cvt[1]),