Commit b20871ce authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed bug in Matx::inv(..., DECOMP_SVD) (ticket #1444)

parent 0b907d08
...@@ -820,7 +820,7 @@ Matx<_Tp, n, m> Matx<_Tp, m, n>::inv(int method) const ...@@ -820,7 +820,7 @@ Matx<_Tp, n, m> Matx<_Tp, m, n>::inv(int method) const
else else
{ {
Mat A(*this, false), B(b, false); Mat A(*this, false), B(b, false);
ok = (0.0 == invert(A, B, method)); ok = (invert(A, B, method) != 0);
} }
return ok ? b : Matx<_Tp, n, m>::zeros(); return ok ? b : Matx<_Tp, n, m>::zeros();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment