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:
25887e6
)
propagated fix for Matx(Matx::diag_type) constructor from branch 2.3 to trunk
author
Vadim Pisarevsky
<no@email>
Mon, 27 Jun 2011 20:01:05 +0000
(20:01 +0000)
committer
Vadim Pisarevsky
<no@email>
Mon, 27 Jun 2011 20:01:05 +0000
(20:01 +0000)
modules/core/include/opencv2/core/operations.hpp
patch
|
blob
|
history
diff --git
a/modules/core/include/opencv2/core/operations.hpp
b/modules/core/include/opencv2/core/operations.hpp
index
e98dd0e
..
60b4926
100644
(file)
--- a/
modules/core/include/opencv2/core/operations.hpp
+++ b/
modules/core/include/opencv2/core/operations.hpp
@@
-348,7
+348,7
@@
Matx<_Tp,m,n> Matx<_Tp,m,n>::diag(const Matx<_Tp,MIN(m,n),1>& d)
{
Matx<_Tp,m,n> M;
for(int i = 0; i < MIN(m,n); i++)
- M(i,i) = d
[i]
;
+ M(i,i) = d
(i, 0)
;
return M;
}