8.22. Микшер каналов

8.22.1. Обзор

Рисунок 16.170. Изображение до и после применения фильтра «Микшер каналов»

Изображение до и после применения фильтра «Микшер каналов»

Исходное изображение

Изображение до и после применения фильтра «Микшер каналов»

После применения фильтра «Микшер каналов»


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

8.22.2. Activating the Command

You can access this command from the main menu through ColorsComponentsChannel Mixer.

8.22.3. Параметры

Рисунок 16.171. Параметры фильтра «Микшер каналов»

Параметры фильтра «Микшер каналов»

Presets

«Presets» are a common feature for several Colors commands. You can find its description in Раздел 8.1.1, «Часто встречающиеся возможности команд «Цвет»».

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.

Сохранить яркость

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 Раздел 8.1.1, «Часто встречающиеся возможности команд «Цвет»».

8.22.4. Как работает микшер каналов?

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:

Рисунок 16.172. Исходное изображение и его каналы

Исходное изображение и его каналы

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.


Рисунок 16.173. Канал вывода — красный. Зелёный канал +50

Канал вывода — красный. Зелёный канал +50

В красном квадрате значения пикселей равны 230;10;10. Процентное соотношение равно 1;0.5;0. Результат вычисления даёт 230*1 + 10*0,5 + 10*0 =235. То же верно для зелёного и синего квадратов.

В сером квадрате, содержащем красный цвет, результат вычисления получится больше 255 и в результате снижается до 255. Отрицательное значение было бы приведено к 0.


Рисунок 16.174. Канал вывода — красный. Зелёный канал +50%. Используется параметр Сохранять яркость.

Канал вывода — красный. Зелёный канал +50%. Используется параметр Сохранять яркость.

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