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:
138490f
)
proper fix for reduce with op=CV_REDUCE_AVG and ddepth==CV_8U
author
Vadim Pisarevsky
<no@email>
Wed, 1 Jun 2011 13:44:09 +0000
(13:44 +0000)
committer
Vadim Pisarevsky
<no@email>
Wed, 1 Jun 2011 13:44:09 +0000
(13:44 +0000)
modules/core/src/matrix.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/matrix.cpp
b/modules/core/src/matrix.cpp
index
0d0576a
..
8c3842a
100644
(file)
--- a/
modules/core/src/matrix.cpp
+++ b/
modules/core/src/matrix.cpp
@@
-1872,8
+1872,10
@@
void cv::reduce(const InputArray& _src, OutputArray _dst, int dim, int op, int d
{
op = CV_REDUCE_SUM;
if( sdepth < CV_32S && ddepth < CV_32S )
+ {
temp.create(dst.rows, dst.cols, CV_32SC(cn));
- //ddepth = CV_32S;
+ ddepth = CV_32S;
+ }
}
ReduceFunc func = 0;