Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
223a3cda
Commit
223a3cda
authored
Jan 28, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
c8b405eb
5834bea0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
icp.cpp
modules/surface_matching/src/icp.cpp
+2
-4
No files found.
modules/surface_matching/src/icp.cpp
View file @
223a3cda
...
...
@@ -246,6 +246,7 @@ static hashtable_int* getHashtable(int* data, size_t length, int numMaxElement)
int
ICP
::
registerModelToScene
(
const
Mat
&
srcPC
,
const
Mat
&
dstPC
,
double
&
residual
,
Matx44d
&
pose
)
{
int
n
=
srcPC
.
rows
;
CV_CheckGT
(
n
,
0
,
""
);
const
bool
useRobustReject
=
m_rejectionScale
>
0
;
...
...
@@ -280,10 +281,7 @@ int ICP::registerModelToScene(const Mat& srcPC, const Mat& dstPC, double& residu
// walk the pyramid
for
(
int
level
=
m_numLevels
-
1
;
level
>=
0
;
level
--
)
{
const
double
impact
=
2
;
double
div
=
pow
((
double
)
impact
,
(
double
)
level
);
//double div2 = div*div;
const
int
numSamples
=
cvRound
((
double
)(
n
/
(
div
)));
const
int
numSamples
=
divUp
(
n
,
1
<<
level
);
const
double
TolP
=
m_tolerance
*
(
double
)(
level
+
1
)
*
(
level
+
1
);
const
int
MaxIterationsPyr
=
cvRound
((
double
)
m_maxIterations
/
(
level
+
1
));
...
...
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