Change channels strength
Posted: 2013-02-04T00:53:52-07:00
I would like to change image's colors, to take the strength of the Red color and split it between the other channels in the precentage I desire.
For example, if the RGB of a pixel in an image is as the following:
R:200
G:0
B:0
it will turn into (configurable):
R:0 (0%)
G:50 (25%)
B:150 (75%)
or even above the 100% into this result:
R: 50 (25%)
G: 50 (25%)
B: 100 (100%)
At first I tried using but it only swaps the red channel with the blue.
Thanks in advance.
For example, if the RGB of a pixel in an image is as the following:
R:200
G:0
B:0
it will turn into (configurable):
R:0 (0%)
G:50 (25%)
B:150 (75%)
or even above the 100% into this result:
R: 50 (25%)
G: 50 (25%)
B: 100 (100%)
At first I tried using
Code: Select all
source.png -separate -swap 0,2 -combine result.png
Thanks in advance.