projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9660c
)
Fix a bug of convertTo.
author
peng xiao
<hisenxpress@gmail.com>
Thu, 20 Jun 2013 03:26:22 +0000
(11:26 +0800)
committer
peng xiao
<hisenxpress@gmail.com>
Thu, 20 Jun 2013 03:26:22 +0000
(11:26 +0800)
The bug was found that all 3-channel oclMat's were converted to
4-channel oclMat's after using convertTo function.
modules/ocl/src/matrix_operations.cpp
patch
|
blob
|
history
diff --git
a/modules/ocl/src/matrix_operations.cpp
b/modules/ocl/src/matrix_operations.cpp
index
268a1fe
..
172dfa5
100644
(file)
--- a/
modules/ocl/src/matrix_operations.cpp
+++ b/
modules/ocl/src/matrix_operations.cpp
@@
-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),
ocl
channels());
+ rtype = CV_MAKETYPE(CV_MAT_DEPTH(rtype), channels());
//int scn = channels();
int sdepth = depth(), ddepth = CV_MAT_DEPTH(rtype);