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
dbab7eca
Commit
dbab7eca
authored
May 31, 2018
by
Sancho McCann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored out a dead code path.
parent
0349e8c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
ptsetreg.cpp
modules/calib3d/src/ptsetreg.cpp
+2
-14
No files found.
modules/calib3d/src/ptsetreg.cpp
View file @
dbab7eca
...
...
@@ -78,10 +78,7 @@ class RANSACPointSetRegistrator : public PointSetRegistrator
public
:
RANSACPointSetRegistrator
(
const
Ptr
<
PointSetRegistrator
::
Callback
>&
_cb
=
Ptr
<
PointSetRegistrator
::
Callback
>
(),
int
_modelPoints
=
0
,
double
_threshold
=
0
,
double
_confidence
=
0.99
,
int
_maxIters
=
1000
)
:
cb
(
_cb
),
modelPoints
(
_modelPoints
),
threshold
(
_threshold
),
confidence
(
_confidence
),
maxIters
(
_maxIters
)
{
checkPartialSubsets
=
false
;
}
:
cb
(
_cb
),
modelPoints
(
_modelPoints
),
threshold
(
_threshold
),
confidence
(
_confidence
),
maxIters
(
_maxIters
)
{}
int
findInliers
(
const
Mat
&
m1
,
const
Mat
&
m2
,
const
Mat
&
model
,
Mat
&
err
,
Mat
&
mask
,
double
thresh
)
const
{
...
...
@@ -143,17 +140,9 @@ public:
ms1ptr
[
i
*
esz1
+
k
]
=
m1ptr
[
idx_i
*
esz1
+
k
];
for
(
k
=
0
;
k
<
esz2
;
k
++
)
ms2ptr
[
i
*
esz2
+
k
]
=
m2ptr
[
idx_i
*
esz2
+
k
];
if
(
checkPartialSubsets
&&
!
cb
->
checkSubset
(
ms1
,
ms2
,
i
+
1
))
{
// we may have selected some bad points;
// so, let's remove some of them randomly
i
=
rng
.
uniform
(
0
,
i
+
1
);
iters
++
;
continue
;
}
i
++
;
}
if
(
!
checkPartialSubsets
&&
i
==
modelPoints
&&
!
cb
->
checkSubset
(
ms1
,
ms2
,
i
)
)
if
(
i
==
modelPoints
&&
!
cb
->
checkSubset
(
ms1
,
ms2
,
i
)
)
continue
;
break
;
}
...
...
@@ -261,7 +250,6 @@ public:
Ptr
<
PointSetRegistrator
::
Callback
>
cb
;
int
modelPoints
;
bool
checkPartialSubsets
;
double
threshold
;
double
confidence
;
int
maxIters
;
...
...
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