1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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>5. Edge-detect filters</title>
<link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
<link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
<link rel="start" href="index.html" title=" " />
<link rel="up" href="ch06.html" title="Chapter 6. Filters" />
<link rel="prev" href="ch06s04s07.html" title="4.7. Spread" />
<link rel="next" href="ch06s05s02.html" title="5.2. Edge" />
</head>
<body>
<div xmlns="" class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center" id="chaptername">5. Edge-detect filters</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="ch06s04s07.html">Prev</a> </td>
<th width="60%" align="center" id="sectionname">5. Edge-detect filters</th>
<td width="20%" align="right"> <a accesskey="n" href="ch06s05s02.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="filters-edge"></a>5. Edge-detect filters</h2>
</div>
</div>
</div>
<a id="id3361567" class="indexterm"></a>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="filters-edges-introduction"></a>5.1. Edge-detect introduction</h3>
</div>
</div>
</div>
<p>
Edge detect filters search for borders between different colors
and so can detect contours of objects.
</p>
<p>
They are used to make selections and for many artistic purposes.
</p>
<div class="mediaobject">
<img src="../images/filters/filters-edgedetect-fig.png" />
</div>
<p>
Most of them are based on gradient calculation methods and give
thick border lines. Look at fig.1 which represents color
intensity variations. On the left is a slow color gradient which
is not a border. On the right is a quick variation which is an
edge. Now, let us calculate the gradient, the variation speed, of
this edge, i.e the first derivative (fig.2). We have to decide
that a border is detected when gradient is more than a threshold
value (the exact border is at top of the curve, but this top
varies according to borders). In most cases, threshold is under
top and border is thick.
</p>
<p>
The Laplacian edge detection uses the second derivative (fig.3).
The top of the curve is now at zero and clearly identified. That's
why Laplace filter renders a thin border, only a pixel wide. But
this derivative gives several zeros corresponding to small
ripples, resulting in false edges.
</p>
<p>
Some blurring before applying edge filters is often necessary: it
flattens small ripples in signal and so prevents false edges.
</p>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="ch06s04s07.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="ch06.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="ch06s05s02.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">4.7. Spread </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> 5.2. Edge</td>
</tr>
</table>
</div>
</body>
</html>
|