propagated fix for Matx(Matx::diag_type) constructor from branch 2.3 to trunk

This commit is contained in:
Vadim Pisarevsky 2011-06-27 20:01:05 +00:00
parent 25887e693b
commit 2776b42a7b

View File

@ -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;
}