My suggestion is that as you specifically want the near red and near yellow colors is to search for those colors and use them to generate a mask for the original image. The mask can then be used to change all the other colors.
An example of this was developed for explaining 'Fuzz Factors' for nearby color selections..
See the second example in... Fuzz Factor - Matching Similar Colors
http://www.cit.gu.edu.au/~anthony/graph ... tize/#fuzz
Hmmm using the colorwheel image in the examples above....
Code: Select all
convert colorwheel.jpg \
\( +clone -fuzz 20% -transparent red -transparent yellow \
-fill pink -colorize 100% \) -composite red-yellow.png
In fact this method is SO GOOD, I am replacing the original one used in IM examples, as it is simplier to understand!