Think about Loose Coupling | |
PerlMonks |
Re: convert image to greyscale (color to black and white)by liz (Monsignor) |
on Dec 21, 2003 at 11:31 UTC ( [id://316167]=note: print w/replies, xml ) | Need Help?? |
my $g = ( $c[0] + $c[1] + $c[2] ) / 3; # Color::Calc::grey
Although this is the way in which Color::Calc::grey works, I wonder whether this will produce the best black and white version of a color image. This is because the human eye is differently sensitive to different colours (e.g. more sensitive to red, which is why traffic lights are red, or so I'm told). I don't have another formula to be used at hand, just pointing out something that may warrant some further investigation. Liz
In Section
Cool Uses for Perl
|
|