From 7106513b8accc1c635361e732fa2b54b89c84cce Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Sun, 16 Oct 2011 13:45:11 +0000 Subject: [PATCH] warning under vs2008 --- modules/core/include/opencv2/core/operations.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 6782459c2..999a7d217 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -790,7 +790,7 @@ template struct CV_EXPORTS Matx_FastInvOp<_Tp, 3> { bool operator()(const Matx<_Tp, 3, 3>& a, Matx<_Tp, 3, 3>& b, int) const { - _Tp d = determinant(a); + _Tp d = (_Tp)determinant(a); if( d == 0 ) return false; d = 1/d; @@ -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 = invert(A, B, method); + ok = (0.0 == invert(A, B, method)); } return ok ? b : Matx<_Tp, n, m>::zeros(); }