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
8dd85835
Commit
8dd85835
authored
Dec 04, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revamped
parent
77b39482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
houghlines.cpp
samples/cpp/houghlines.cpp
+8
-1
No files found.
samples/cpp/houghlines.cpp
View file @
8dd85835
...
...
@@ -6,6 +6,13 @@
using
namespace
cv
;
using
namespace
std
;
void
help
()
{
cout
<<
"
\n
This program demonstrates line finding with the Hough transform.
\n
"
"Call:
\n
"
"./houghlines [image_len -- Default is pic1.png
\n
"
<<
endl
;
}
int
main
(
int
argc
,
char
**
argv
)
{
const
char
*
filename
=
argc
>=
2
?
argv
[
1
]
:
"pic1.png"
;
...
...
@@ -16,7 +23,7 @@ int main(int argc, char** argv)
cout
<<
"can not open "
<<
filename
<<
endl
;
cout
<<
"Usage: houghlines <image_name>"
<<
endl
;
}
help
();
Mat
dst
,
cdst
;
Canny
(
src
,
dst
,
50
,
200
,
3
);
cvtColor
(
dst
,
cdst
,
CV_GRAY2BGR
);
...
...
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