johnnywang has asked for the wisdom of the Perl Monks concerning the following question:
Given an image, I'd like to replace some color (say red) with another color (say white). What's the best way to go about it? I've looked into PerlMagick (are there more complete documentations? the one at http://www.imagemagick.org/script/perl-magick.php doesn't explain function parameters in detail). I guess I could get the rgb value at every pixel and replace it one by one, isn't there something easier, or fuzzy(i.e., replace colors in certain rgb range)? Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Replace colors in an image
by BrowserUk (Patriarch) on Oct 04, 2005 at 18:58 UTC | |
by johnnywang (Priest) on Oct 04, 2005 at 20:32 UTC | |
Re: Replace colors in an image
by zentara (Archbishop) on Oct 04, 2005 at 21:04 UTC | |
Re: Replace colors in an image
by tonyc (Friar) on Oct 05, 2005 at 00:06 UTC |
Back to
Seekers of Perl Wisdom