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

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 25887e693b
commit 2776b42a7b
  1. 2
      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;
}

Loading…
Cancel
Save