From b20871ce2d23d47f685424d6dff9d8af2a89f807 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Sat, 3 Dec 2011 18:50:11 +0000 Subject: [PATCH] fixed bug in Matx::inv(..., DECOMP_SVD) (ticket #1444) --- modules/core/include/opencv2/core/operations.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 6ff1eb3da9..a8d704e5b7 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -820,7 +820,7 @@ Matx<_Tp, n, m> Matx<_Tp, m, n>::inv(int method) const else { 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(); }