fixed compile error on VS2008
This commit is contained in:
parent
5e84ab0222
commit
f6c8e237f0
@ -143,7 +143,7 @@ float KeyPoint::overlap( const KeyPoint& kp1, const KeyPoint& kp2 )
|
|||||||
float triangleAreaB = b_2 * sinAlpha * cosAlpha;
|
float triangleAreaB = b_2 * sinAlpha * cosAlpha;
|
||||||
|
|
||||||
float intersectionArea = segmentAreaA + segmentAreaB - triangleAreaA - triangleAreaB;
|
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;
|
ovrl = intersectionArea / unionArea;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user