Gimp - 2.4 Guía Del Usuario

Descargar
Página de 653
GNU Image Manipulation Program
475 / 653
15.7.2.2
Options
Figure 15.100: ‘Convolution matrix’ options
Matrix This is the 5x5 kernel matrix: you enter wanted values directly into boxes.
Divisor: The result of previous calculation will be divided by this divisor. You will hardly use 1, which lets result un-
changed, and 9 or 25 according to matrix size, which gives the average of pixel values.
Offset: this value is added to the division result. This is useful if result may be negative. This offset may be negative.
Border
Source Extend, Wrap, Crop
When the initial pixel is on a border, a part of kernel is out of image. You have to decide what filter must do:
• Extend: this part of kernel is not taken into account.
• Wrap: this part of kernel will study pixels of the opposite border, so pixels disappearing from one side reappear on the
other side.
• Crop: Pixels on borders are not modified, but they are cropped.
Channels You can select there one or several channels the filter will work with.
Automatic If this option is checked, The Divisor takes the result value of convolution. If this result is equal to zero (it’s not
possible to divide by zero), then a 128 offset is applied. If it is negative (a negative color is not possible), a 255 offset is
applied (inverts result).
Alpha weighting If this option is not checked, the filter doesn’t take in account transparency and this may be cause of some
artefacts when blurring.
15.7.2.3
Examples
Design of kernels is based on high levels mathematics. You can find ready-made kernels on the Web. Here are a few examples: