Changing a specific color in an image
Posted: 2015-05-12T07:48:22-07:00
What I'd like to do is change the green (and associated shades) in the following image to shades of purple, as given in the gradient file. Originally the figures were converted to grey-scale then CLUT was used to add the purple with the gradient file, but this causes all different colors to change to purple as well rather than just green.
Input: https://www.dropbox.com/s/19yqxbbhu66xg ... g.tif?dl=0
CLUT gradient: https://www.dropbox.com/s/2zprm9i2fj733 ... p.png?dl=0
The result should be like this:
https://www.dropbox.com/s/6ftbyhlvazr1z ... 5.tif?dl=0
After reading through some of the IM tutorials it seems like that if you want to change a color in a picture, such as going from shades of green to shades purple, tools like CLUT and level-color are good. I also played around with Fred's huemap (which is awesome), but from what I can tell I think I need something slightly different because the purples I get look a bit off due to S and V variations compared to the gradient.
I think I got on a bit of a tangent, but I started looking at trying to isolate the green in the image (and do some kind of mask) and applying the gradient with CLUT, but I couldn't work out how to get the green parts of the picture by themselves.
Would anyone have suggestions?
Input: https://www.dropbox.com/s/19yqxbbhu66xg ... g.tif?dl=0
CLUT gradient: https://www.dropbox.com/s/2zprm9i2fj733 ... p.png?dl=0
The result should be like this:
https://www.dropbox.com/s/6ftbyhlvazr1z ... 5.tif?dl=0
After reading through some of the IM tutorials it seems like that if you want to change a color in a picture, such as going from shades of green to shades purple, tools like CLUT and level-color are good. I also played around with Fred's huemap (which is awesome), but from what I can tell I think I need something slightly different because the purples I get look a bit off due to S and V variations compared to the gradient.
I think I got on a bit of a tangent, but I started looking at trying to isolate the green in the image (and do some kind of mask) and applying the gradient with CLUT, but I couldn't work out how to get the green parts of the picture by themselves.
Would anyone have suggestions?