Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
741e5139
Commit
741e5139
authored
Mar 21, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8416 from berak:patch-2
parents
1389cc96
0b31eca9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
undistort.cpp
modules/imgproc/src/undistort.cpp
+0
-10
No files found.
modules/imgproc/src/undistort.cpp
View file @
741e5139
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment