From 60633fddd06449e5ea5728556bbd2cf759571c2e Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 31 Mar 2011 14:03:17 +0000 Subject: [PATCH] fixed bug in complanarity check in cvEstimateRigidTransform (thanks to Luca Del Tongo) --- modules/video/src/lkpyramid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video/src/lkpyramid.cpp b/modules/video/src/lkpyramid.cpp index b8d289040..4870dee26 100644 --- a/modules/video/src/lkpyramid.cpp +++ b/modules/video/src/lkpyramid.cpp @@ -1799,7 +1799,7 @@ cvEstimateRigidTransform( const CvArr* matA, const CvArr* matB, CvMat* matM, int double dax1 = a[1].x - a[0].x, day1 = a[1].y - a[0].y; double dax2 = a[2].x - a[0].x, day2 = a[2].y - a[0].y; - double dbx1 = b[1].x - b[0].y, dby1 = b[1].y - b[0].y; + double dbx1 = b[1].x - b[0].x, dby1 = b[1].y - b[0].y; double dbx2 = b[2].x - b[0].x, dby2 = b[2].y - b[0].y; const double eps = 0.01;