Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to convert image to greyscale (color to black and white)

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

Replies are listed 'Best First'.
Re: Re: convert image to greyscale (color to black and white)
by tachyon (Chancellor) on Dec 21, 2003 at 12:27 UTC
      May I suggest that the reason that green is used for night lighting isnt so much the eye sensitivity, tho that IS true. It has to do with persistance of vision. Green can be easily seen at night while preserving your night vision. Brighter colors like yellow kinda mess-up your night vision. Green is more "friendly" to your night vision. Some car instrument panels (speedometer, etc) are lit in yellow. While that is easier to see it is hard on your night vision. This may not be true for everybody, but it is generally true for most people.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://316167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found