1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fixed Matx<m, n>::diag(const Matx<m, n>::diag_type& d) constructor.

This commit is contained in:
Vadim Pisarevsky
2011-06-27 19:50:54 +00:00
parent 9ec6d4a467
commit a2880a547a
@@ -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;
}