RGB to Wavelength, is it possible?

32 views (last 30 days)
John Conson
John Conson on 7 Sep 2015
Commented: John Conson on 7 Sep 2015
Is it possible to generate a histogram based on wavelength (visible light), rather than RGB values? Even if it is a slight approximation, it would be very useful.

Answers (1)

Walter Roberson
Walter Roberson on 7 Sep 2015
  4 Comments
Image Analyst
Image Analyst on 7 Sep 2015
Like I said in the link Walter referred you to, Some arbitrary RGB does not necessarily map to one single pure wavelength. A single RGB triplet of values might be arrived at from a whole broad spectrum of wavelengths, not just one wavelength. This is general color science, not something specific to MATLAB.
Not only that but there can be "metamers" - spectra that are completely different but that give the same RGB values. Google metamerism to learn more.
You might be interested in this link or this one or this one.
John Conson
John Conson on 7 Sep 2015
what is the correct way to perform steps 3-7?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!