Merge pull request #1031 from pengx17:2.4_fix_converTo
This commit is contained in:
commit
7cb047e2d9
@ -394,7 +394,7 @@ void cv::ocl::oclMat::convertTo( oclMat &dst, int rtype, double alpha, double be
|
|||||||
if( rtype < 0 )
|
if( rtype < 0 )
|
||||||
rtype = type();
|
rtype = type();
|
||||||
else
|
else
|
||||||
rtype = CV_MAKETYPE(CV_MAT_DEPTH(rtype), oclchannels());
|
rtype = CV_MAKETYPE(CV_MAT_DEPTH(rtype), channels());
|
||||||
|
|
||||||
//int scn = channels();
|
//int scn = channels();
|
||||||
int sdepth = depth(), ddepth = CV_MAT_DEPTH(rtype);
|
int sdepth = depth(), ddepth = CV_MAT_DEPTH(rtype);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user