### 8.2. Difference of Gaussians

#### 8.2.1. Overview

图 17.169. Applying example for the “Difference of Gaussians” filter

Original image

Filter “Difference of Gaussians” applied with radius 1 = 1.000 and radius 2 = 0.100.

This filter 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, and is pretty fast because there are very efficient methods for doing Gaussian blurs.

#### 8.2.2. Activating the Filter

This filter is found in the main menu under Filters → Edge-Detect → Difference of Gaussians….

#### 8.2.3. Options

图 17.170. Gaussian Difference filter options

Presets, “Input Type”, Clipping, Blending Options, Preview, Merge filter, Split view

  | 注意
  These options are described in 第 2 节 “Common Features”.

Radius 1, Radius 2

  Radius 1 and Radius 2 are the blurring radii for the two Gaussian blurs. Increasing “Radius1” tends to give thicker-appearing edges, and decreasing the “Radius2” tends to increase the “threshold” for recognizing something as an edge.

  If you want to produce something that looks like a sketch, in most cases setting “Radius2” smaller than “Radius1” will give better results.

  In situations where you have a light figure on the dark background, reversing them may actually improve the result.

8. 边缘侦测滤镜 |  | 8.3. Edge

Report a bug in GIMP Report a documentation error