Pav. 16.170. Filtro „Kanalų maišytuvas“ pavyzdys
Originalus paveikslėlis
Pritaikytas filtras „Kanalų maišytuvas“
This command combines values of the RGB channels. It works with images with or without an alpha channel.
„Presets“ are a common feature for several Colors commands. You can find its description in Skyrius 8.1.1, „Colors Common Features“.
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.
These are common features described in Skyrius 8.1.1, „Colors Common Features“.
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:
Pav. 16.172. Originalus paveikslėlis ir jo kanalai
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.
Pav. 16.173. Išvesties kanalas – raudonas. Žalias kanalas +50
Raudoname kvadrate pikselių reikšmės yra 230;10;10. Procentai yra 1;0,5;0. Skaičiavimų rezultatas: 230*1 + 10*0,5 + 10*0 =235. Tas pats samprotavimas tinka žaliam ir mėlynam kvadratams.
Pilkame kvadrate, kuriame yra raudona spalva, skaičiavimų rezultatas yra virš 255. Jis sumažintas iki 255. Neigiama reikšmė būtų padidinta iki 0.
Pav. 16.174. Išvesties kanalas – raudonas. Žalias kanalas +50%. Pažymėta parinktis Išsaugoti šviesingumą.
The values attributed to the Red Output channel are lower, preventing a too bright image.