Situation:
You have an image with 1 main color and you need to convert it to another based on a given rgb value.
Problem:
There are a number of different, but similar shades of that color that also need to be converted, which makes a simple 'change-all-(0,0,0)-pixels-to-(0,100,200)' solution worthless.
If anyone can point me in the right direction as far as an algorithm or an image manipulation technique that would make this task more manageable that'd be great.
I've been using PIL to attempt this problem but any general tips would be nice.
edit:
Also, I've used this other SO answer (Changing image hue with Python PIL) to do part of what I'm asking (the hue change), but It doesn't take into consideration the saturation or value
edit: http://dpaste.org/psk5C/ shows using pil to look at the rgb values that I have to work with and the hsv's that go along with some.