Swap image color channels based off noise image.
Posted: 2017-12-16T09:30:15-07:00
So, here's what I want to do.
Let's say I have a normal image with RGB color channels. I want to either generate or use a random noise image for this. Basically, what I want to do is switch the red and green color channels based off the noise image's pixels. If the pixel is black the colors aren't switched, if it's white the colors are completely swapped, and if it's half/gray the colors are averaged. How can I do this?
Let's say I have a normal image with RGB color channels. I want to either generate or use a random noise image for this. Basically, what I want to do is switch the red and green color channels based off the noise image's pixels. If the pixel is black the colors aren't switched, if it's white the colors are completely swapped, and if it's half/gray the colors are averaged. How can I do this?