Merge pull request #1031 from pengx17:2.4_fix_converTo

This commit is contained in:
Roman Donchenko 2013-06-24 12:25:48 +04:00 committed by OpenCV Buildbot
commit 7cb047e2d9

View File

@ -394,7 +394,7 @@ void cv::ocl::oclMat::convertTo( oclMat &dst, int rtype, double alpha, double be
if( rtype < 0 )
rtype = type();
else
rtype = CV_MAKETYPE(CV_MAT_DEPTH(rtype), oclchannels());
rtype = CV_MAKETYPE(CV_MAT_DEPTH(rtype), channels());
//int scn = channels();
int sdepth = depth(), ddepth = CV_MAT_DEPTH(rtype);