On Thu, 23 Jul 2009 18:28:35 +1000 (EST)
"damien dunlop" <[email protected]> wrote:

| Suppose a multi-coloured RGB image contains areas of
| a certain RGB value (within a small tolerance).
| 
| Using ImageMagick, is it possible to change all other colours
| to a background colour, leaving the image with just the specified
| colour and the background colour.
| 
Use a replace 'not' this color.

  -opaque    replace this color
  +opaque    replace NOT this color

For example

   -fill white  +opaque red

that will replace anything not pure red to white
Add a -fuzz factor if you want 'near pure red'.




  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
    If we forget to respect our Great Earth Mother,
    She will withhold Her blessings, and no longer provide for us.
                                     -- Jean M. Auel "The Mammoth Hunters"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to