Skip to content

Commit 741e513

Browse files
committed
Merge pull request opencv#8416 from berak:patch-2
2 parents 1389cc9 + 0b31eca commit 741e513

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

modules/imgproc/src/undistort.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,6 @@ static Point2f mapPointSpherical(const Point2f& p, float alpha, Vec4d* J, int pr
476476

477477
static Point2f invMapPointSpherical(Point2f _p, float alpha, int projType)
478478
{
479-
static int avgiter = 0, avgn = 0;
480-
481479
double eps = 1e-12;
482480
Vec2d p(_p.x, _p.y), q(_p.x, _p.y), err;
483481
Vec4d J;
@@ -502,14 +500,6 @@ static Point2f invMapPointSpherical(Point2f _p, float alpha, int projType)
502500
//q -= Vec2d((J.t()*J).inv()*(J.t()*err));
503501
}
504502

505-
if( i < maxiter )
506-
{
507-
avgiter += i;
508-
avgn++;
509-
if( avgn == 1500 )
510-
printf("avg iters = %g\n", (double)avgiter/avgn);
511-
}
512-
513503
return i < maxiter ? Point2f((float)q[0], (float)q[1]) : Point2f(-FLT_MAX, -FLT_MAX);
514504
}
515505

0 commit comments

Comments
 (0)