Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

5.2.  Difference of Gaussians

Revision History
Revision $Revision: 1.14 $ 2006-11-19 j.h

5.2.1.  Overview

Figure 11.77.  Applying example for the Difference of Gaussians filter

Applying example for the Difference of Gaussians filter
Applying example for the Difference of Gaussians filter

You can find this filter through Filters->Edge detect->Difference of Gaussians

This filter is new in GIMP 2.2. It does edge detection using the so-called “Difference of Gaussians” algorithm, which works by performing two different Gaussian blurs on the image, with a different blurring radius for each, and subtracting them to yield the result. This algorithm is very widely used in artificial vision (maybe in biological vision as well!), and is pretty fast because there are very efficient methods for doing Gaussian blurs. The most important parameters are the blurring radii for the two Gaussian blurs. It is probably easiest to set them using the preview, but it may help to know that increasing the smaller radius tends to give thicker-appearing edges, and decreasing the larger radius tends to increase the “threshold ” for recognizing something as an edge. In most cases you will get nicer results if Radius 2 is smaller than Radius 1, but nothing prevents you from reversing them, and in situations where you have a light figure on the dark background, reversing them may actually improve the result.

5.2.2.  Options

Figure 11.78.  Gaussian Difference filter options

Gaussian Difference filter options
Smoothing parameters

Radius 1 and Radius 2 are the blurring radii for the two Gaussian blurs. The only constraints on them is that they cannot be equal, or else the result will be a blank image. If you want to produce something that looks like a sketch, in most cases setting Radius 2 smaller than Radius 1 will give better results.

Normalize

Checking this box causes the brightness range in the result to be stretched as much as possible, increasing contrast. Note that in the preview, only the part of the image that is shown is taken into account, so with Normalize checked the preview is not completely accurate. (It is accurate except in terms of global contrast, though.)

Invert

Checking this box inverts the result, so that you see dark edges on a white background, giving something that looks more like a drawing.


 
 
  Published under the terms of the GNU General Public License Design by Interspire