-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCVFCannyDemo.html
22 lines (21 loc) · 1.79 KB
/
CVFCannyDemo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<h2>Canny Edge Detector</h2>
<p><strong>What You’re Seeing:<br />
</strong>The edge detector searches for edges between regions of different brightness in the image. It draws a black line for each edge it finds.</p>
<p><strong>How It Works:<br />
</strong>Edge detectors treat changes in brightness between adjacent pixels in an image beyond a certain threshold as edges. The Canny Edge Detector is more sophisticated in that it uses two thresholds. If a pixel is not adjacent to an existing edge, it uses a higher threshold; if a pixel is adjacent to an existing edge, it uses a lower threshold. The high threshold keeps down the number of excess edges to a minimum, while the lower threshold continues existing edges, even if they get slightly fuzzy.</p>
<p><strong>What It’s Used For:<br />
</strong>Edge detection is often the first step in object segmentation, that is, breaking up an image into segments that represent different objects in the image.</p>
<p><strong>Try and Notice:<br />
</strong>Experiment with objects different levels of contrast. What’s the minimum difference in brightness needed between to areas to find an edge?<br />
Just for for fun, Play A-Ha’s song “Take on Me” in the background while this demo runs, and pretend you’re in the music video for the song.</p>
<p><strong>Learn More:<br />
</strong><a href="http://en.wikipedia.org/wiki/Canny_edge_detector">Canny edge detector</a> on Wikipedia</p>
</body>
</html>