Outline • My project: EDGE DETECTION • Let’s view the code

advertisement
Outline
• My project: EDGE DETECTION
• Let’s view the code
• Sample images
D. M. Cates 4/16/01
Slide design courtesy of Prof. X. Liu
First off...
• You may be asking:
– Who is this guy?
– Where has he been?
5/29/2016
COP4610
2
EDGE DETECTION
• Prof. Liu discussed this early on in the
semester, February 9
• What is EDGE DETECTION?
5/29/2016
COP4610
3
My project
• Created an edge detector utilizing Sobel
operator
– Chalkboard refresher
– | Gradient | = | kernel 1 | + | kernel 2 |
• Remember, edge detector operators (e.g. Sobel,
Prewitt, etc.) sum to ZERO
5/29/2016
COP4610
4
How does this thingy work?
• Compile:
gcc -O4 -o ced ced.c -lm
• Run:
ced TAU BINARY-THRESHOLD input-file
output-file
5/29/2016
COP4610
5
Some images…
• Comparison with Canny
– relatively slower
– noise a big problem
Google icon is a trademark of Google Inc..
Whassup?! Icon is a registered trademark of Anheuser-Busch, Inc.
5/29/2016
COP4610
6
Conclusion
• Just another edge detector to add to your
collection
• Feel free to modify
• Fairly well documented, but email cates@cs if
questions
• Want more?
– Google search!
http://www.google.com/search?q=sobel+edge+operator&btnG=Google+Search
5/29/2016
COP4610
7
Download