From f6c8e237f01f2337b8ab77b2396655bf3434811e Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Fri, 30 Jul 2010 14:36:04 +0000 Subject: [PATCH] fixed compile error on VS2008 --- modules/features2d/src/keypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/keypoint.cpp b/modules/features2d/src/keypoint.cpp index 9ce7311..6df98cb 100644 --- a/modules/features2d/src/keypoint.cpp +++ b/modules/features2d/src/keypoint.cpp @@ -143,7 +143,7 @@ float KeyPoint::overlap( const KeyPoint& kp1, const KeyPoint& kp2 ) float triangleAreaB = b_2 * sinAlpha * cosAlpha; float intersectionArea = segmentAreaA + segmentAreaB - triangleAreaA - triangleAreaB; - float unionArea = (a_2 + b_2) * M_PI - intersectionArea; + float unionArea = (a_2 + b_2) * CV_PI - intersectionArea; ovrl = intersectionArea / unionArea; } -- 2.7.4