Commit 0b31eca9 authored by berak's avatar berak Committed by GitHub

remove unnessecary print statement

#resolves: 7881

remove printf statement and associated variables from invMapPointSpherical() in undistort.cpp
parent c1007c72
...@@ -476,8 +476,6 @@ static Point2f mapPointSpherical(const Point2f& p, float alpha, Vec4d* J, int pr ...@@ -476,8 +476,6 @@ static Point2f mapPointSpherical(const Point2f& p, float alpha, Vec4d* J, int pr
static Point2f invMapPointSpherical(Point2f _p, float alpha, int projType) static Point2f invMapPointSpherical(Point2f _p, float alpha, int projType)
{ {
static int avgiter = 0, avgn = 0;
double eps = 1e-12; double eps = 1e-12;
Vec2d p(_p.x, _p.y), q(_p.x, _p.y), err; Vec2d p(_p.x, _p.y), q(_p.x, _p.y), err;
Vec4d J; Vec4d J;
...@@ -502,14 +500,6 @@ static Point2f invMapPointSpherical(Point2f _p, float alpha, int projType) ...@@ -502,14 +500,6 @@ static Point2f invMapPointSpherical(Point2f _p, float alpha, int projType)
//q -= Vec2d((J.t()*J).inv()*(J.t()*err)); //q -= Vec2d((J.t()*J).inv()*(J.t()*err));
} }
if( i < maxiter )
{
avgiter += i;
avgn++;
if( avgn == 1500 )
printf("avg iters = %g\n", (double)avgiter/avgn);
}
return i < maxiter ? Point2f((float)q[0], (float)q[1]) : Point2f(-FLT_MAX, -FLT_MAX); return i < maxiter ? Point2f((float)q[0], (float)q[1]) : Point2f(-FLT_MAX, -FLT_MAX);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment