Jump to content

How do I convert RGB pixel intensity to its grayscale intensity.


Recommended Posts

Guest terminator

Well this works but may not result in the most realistic image. Psychophysically the eye responds more to the green content than to red or blue.

For television I believe the weighting is

Gray scale intensity = 0.30R + 0.59G + 0.11B

You can use this attach VI. It uses the following equation : Gray scale intensity = 0.333R + 0.333G + 0.333B
Link to comment
Well this works but may not result in the most realistic image. Psychophysically the eye responds more to the green content than to red or blue.

terminator's right - there is no real emperical method to convert from RGB to grayscale - unfortunately it's in the eye of the beholder: it depends on the sensitivity response of your specific detector to the irradiating light (with respect to wavelength). That said, try a googling convert+RGB+grayscale and you'll get a few formulae to choose from...

Link to comment
  • 7 months later...
Not knowing how to do it "right" I just took the three color components and viewed them as the three components of a 3-d vector.

Whilst, mathematically at least, that sounds like a good idea, there is no "right" method, as it's all dependant on how the human eye perceives the colours, and each colour is perceived differently for each eye. Several standards exist (do a Google for "CIE"), but none of them are actually "right". That's why x,y, LUV, LU'V' standards and specialised hardware exists.

Link to comment
  • 3 months later...

QUOTE(Tomi Maila @ Apr 6 2007, 01:09 AM)

See the colorspace FAQ...

Keep in mind that that shortcut equation is only appropriate for standardized contemporary CRT phosphors - as Tomi said, there is no definite answer to the question - it's just not physically possible.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.