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
a8a92783
Commit
a8a92783
authored
Jun 10, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated matches checking in opencv_stitching
parent
bb8198ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
matchers.cpp
modules/stitching/matchers.cpp
+4
-4
No files found.
modules/stitching/matchers.cpp
View file @
a8a92783
...
...
@@ -311,7 +311,7 @@ namespace
const
DMatch
&
m1
=
pair_matches
[
i
][
1
];
if
(
m0
.
distance
<
(
1.
f
-
match_conf_
)
*
m1
.
distance
)
{
//
matches_info.matches.push_back(m0);
matches_info
.
matches
.
push_back
(
m0
);
matches
.
insert
(
make_pair
(
m0
.
queryIdx
,
m0
.
trainIdx
));
}
}
...
...
@@ -326,7 +326,7 @@ namespace
const
DMatch
&
m0
=
pair_matches
[
i
][
0
];
const
DMatch
&
m1
=
pair_matches
[
i
][
1
];
if
(
m0
.
distance
<
(
1.
f
-
match_conf_
)
*
m1
.
distance
)
if
(
matches
.
find
(
make_pair
(
m0
.
trainIdx
,
m0
.
queryIdx
))
!
=
matches
.
end
())
if
(
matches
.
find
(
make_pair
(
m0
.
trainIdx
,
m0
.
queryIdx
))
=
=
matches
.
end
())
matches_info
.
matches
.
push_back
(
DMatch
(
m0
.
trainIdx
,
m0
.
queryIdx
,
m0
.
distance
));
}
}
...
...
@@ -352,7 +352,7 @@ namespace
const
DMatch
&
m1
=
pair_matches
[
i
][
1
];
if
(
m0
.
distance
<
(
1.
f
-
match_conf_
)
*
m1
.
distance
)
{
//
matches_info.matches.push_back(m0);
matches_info
.
matches
.
push_back
(
m0
);
matches
.
insert
(
make_pair
(
m0
.
queryIdx
,
m0
.
trainIdx
));
}
}
...
...
@@ -368,7 +368,7 @@ namespace
const
DMatch
&
m0
=
pair_matches
[
i
][
0
];
const
DMatch
&
m1
=
pair_matches
[
i
][
1
];
if
(
m0
.
distance
<
(
1.
f
-
match_conf_
)
*
m1
.
distance
)
if
(
matches
.
find
(
make_pair
(
m0
.
trainIdx
,
m0
.
queryIdx
))
!
=
matches
.
end
())
if
(
matches
.
find
(
make_pair
(
m0
.
trainIdx
,
m0
.
queryIdx
))
=
=
matches
.
end
())
matches_info
.
matches
.
push_back
(
DMatch
(
m0
.
trainIdx
,
m0
.
queryIdx
,
m0
.
distance
));
}
}
...
...
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