mirror of
https://github.com/opencv/opencv.git
synced 2025-06-29 08:00:57 +08:00
build failed, trailing whitespace.
This commit is contained in:
parent
e0b7389dc3
commit
893fa4cf84
@ -43,9 +43,8 @@
|
|||||||
namespace cv
|
namespace cv
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// inner product
|
||||||
// inner product
|
static float innerProduct(Point2f &v1, Point2f &v2)
|
||||||
static float innerProduct(Point2f &v1, Point2f &v2)
|
|
||||||
{
|
{
|
||||||
return v1.x * v2.y - v1.y * v2.x;
|
return v1.x * v2.y - v1.y * v2.x;
|
||||||
}
|
}
|
||||||
@ -58,7 +57,7 @@ static void findCircle3pts(Point2f *pts, Point2f ¢er, float &radius)
|
|||||||
|
|
||||||
if (innerProduct(v1, v2) == 0.0f)
|
if (innerProduct(v1, v2) == 0.0f)
|
||||||
{
|
{
|
||||||
// v1, v2 colineation, can not determine a unique circle
|
// v1, v2 colineation, can not determine a unique circle
|
||||||
// find the longtest distance as diameter line
|
// find the longtest distance as diameter line
|
||||||
float d1 = (float)norm(pts[0] - pts[1]);
|
float d1 = (float)norm(pts[0] - pts[1]);
|
||||||
float d2 = (float)norm(pts[0] - pts[2]);
|
float d2 = (float)norm(pts[0] - pts[2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user