Fix a bug of convertTo.
The bug was found that all 3-channel oclMat's were converted to 4-channel oclMat's after using convertTo function.
This commit is contained in:
parent
1d9660c6d2
commit
c1f4fe1637
@ -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