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
ced1d50d
Commit
ced1d50d
authored
Dec 03, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs
parent
4a662c32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
chamfer.cpp
samples/cpp/chamfer.cpp
+11
-1
No files found.
samples/cpp/chamfer.cpp
View file @
ced1d50d
...
...
@@ -7,11 +7,21 @@
using
namespace
cv
;
using
namespace
std
;
void
help
()
{
cout
<<
"
\n
This program demonstrates chamfer matching -- computing a distance between an
\n
"
"edge template and a query edge image.
\n
"
"Call:
\n
"
"./chamfermatching [<image edge map> <template edge map>]
\n
"
"By default
\n
"
"the inputs are ./chamfermatching logo_in_clutter.png logo.png
\n
"
<<
endl
;
}
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
1
&&
argc
!=
3
)
{
cout
<<
"Usage: chamfer <image edge map> <template edge map>
\n
"
;
help
()
;
return
0
;
}
Mat
img
=
imread
(
argc
==
3
?
argv
[
1
]
:
"logo_in_clutter.png"
,
0
);
...
...
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