8.23. Mesclador de canals
| 8. El menú «Colors» |

### 8.23. Mesclador de canals

#### 8.23.1. Resum

Figura 16.190. Exemple del filtre «Mesclador de canals»

Imatge original

Aplicació del «Mesclador de canals»

This command combines values of the RGB channels. It works with images with or without an alpha channel.

#### 8.23.2. Activa l'ordre

You can find this command in the menu through Colors → Components → Channel Mixer.

#### 8.23.3. Opcions

Figura 16.191. Opcions de l'ordre «Mesclador de canals»

Presets

  «Presets» are a common feature for several Colors commands. You can find its description in Secció 8.1.1, «Característiques comunes dels colors».

Red Channel, Green Channel, Blue Channel

  Each of these has three sliders, which set the contribution of the red, green and blue input channels in the output channel. The sliders go from -2 to 2. They represent the multiplication factor of the input channel that will be attributed to the output channel.

Preserva la lluminositat

  The mixing can result in an image where some of the colors are too light. This option lessens the luminosity of the color channels while keeping a good visual ratio between them. So, you can change the relative weight of the colors without changing the overall luminosity.

Blending Options, Preview and Split view

  These are common features described in Secció 8.1.1, «Característiques comunes dels colors».

#### 8.23.4. Com funciona el mesclador de canals?

Each of the output channels is based on the values you set for the three RGB input channels. By default each output channel is based for 100% on the corresponding input channel. This is the one set to 1.0, and the others are set to 0.0. You can change each of the sliders from -2 to +2.

The three RGB input sliders let you give a percentage to every channel. For every pixel in the image, the sum of the calculated values for every channel from these percentages will be given to the output channel. Here is an example:

Figura 16.192. La imatge original i els seus canals

RGB values of the pixels in red, green, blue, gray squares are displayed. The black rectangle is special, because black (0;0;0) is not affected by the command (0 multiplied by any percentage always gives 0). The result can't exceed 255 nor be negative.

Figura 16.193. El canal de sortida és vermell. Canal verd + 50

En el quadrat vermell, els valors dels píxels són 230;10;10. Els valors relatius són 1;0,5; 0. El resultat del càlcul és 230*1 + 10*0,5 + 10*0 =235. El mateix raonament és vàlid per al verd i els quadrats blaus.

En el quadrat gris, que conté el color vermell, el resultat del càlcul és superior a 255. Està limitat a 255. Un valor negatiu seria 0.

Figura 16.194. El canal de sortida és de color vermell. Canal Verd +50%. L'opció preservar la lluminositat està marcada.

The values attributed to the Red Output channel are lower, preventing a too bright image.

8.22. El submenú «Components» |  | 8.24. Extreure component

Report a bug in GIMP Report a documentation error