Response to `Extract one colour' | 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. |
>> >> -fill white +opaque red >> >> that will replace anything not pure red to white >> Add a -fuzz factor if you want 'near pure red'. >> >> -fuzz XX% -fill backgroundcolor +opaque yourcolor Thanks to Fred and Anthony for the response above, it works! But to take it further, I want to a) Extract certain colours from a multi coloured image and then combine the extracted areas in a composite image, with all other colours changed to a background colour. b) The same as a) but creating individual images (which may be inspected and modified a little as individual images) then combining the lot to achieve a composite image as in a). I did try various command combinations but always ended up with the final image consisting of only the background. Damien _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
