Change all pixels of colour 'a' to colour 'b'
Posted: 2010-03-21T15:23:46-07:00
I'm sure this is the simplest question asked in a long time but I can't see how to do it.
I have an image in which all pixels which are currently, say, RGB(10,10,10) I want changed to RGB(20,20,20).
I've looked at -clut but that seems very complex for the problem involved.
To be specific the histogram of the image I have looks like this :
... and I want to change all those cmyk(126,59,14,0) to cmyk(76, 25, 12, 51) (or equivalently cmyk(30% ,10% ,5% ,20%)).
I'm sure there's an easy way to do this but I can't find it !
Would be grateful for any help.
I have an image in which all pixels which are currently, say, RGB(10,10,10) I want changed to RGB(20,20,20).
I've looked at -clut but that seems very complex for the problem involved.
To be specific the histogram of the image I have looks like this :
Code: Select all
Histogram:
1489484: #00000000 black
42810: #000000FF black
37306: #7E3B0E00 cmyk(126,59,14,0)
I'm sure there's an easy way to do this but I can't find it !
Would be grateful for any help.