Sciencemadness Discussion Board
Not logged in [Login ]
Go To Bottom

Printable Version  
Author: Subject: Converting absorbance/transmittance spectrum into digital colour code?
fusso
International Hazard
*****




Posts: 1922
Registered: 23-6-2017
Location: 4 ∥ universes ahead of you
Member Is Offline


[*] posted on 5-5-2018 at 13:46
Converting absorbance/transmittance spectrum into digital colour code?


Compounds are coloured due to absorption of different wavelengths.
So I think it will be interesting if there's a way to convert absorbance/transmittance spectrum of a coloured species of a certain concentration (eg 1M) into a corresponding RGB value.
Then I hope there's someone (or >1?) that have a UV-vis spectrometer/scope to measure out absorbance/transmittance spectra for various species (metal ions & organic substances) and publish onto SM, then the rest of us could calculate the RGB and compile a list of "chemical colours in RGB" to be published onto SM wiki. Any thoughts?




View user's profile View All Posts By User
j_sum1
Administrator
********




Posts: 6222
Registered: 4-10-2014
Location: Unmoved
Member Is Offline

Mood: Organised

[*] posted on 5-5-2018 at 14:09


Let's see.
You want to measure the absorbance at a range of wavelengths and output your result as a colour in rgb format.

Why not just take a photo?



There are good reasons for not doing this.
1. Converting your spectrum data to a single rgb value involves a considerable loss of information.
2. The full spectrum lends itself to analysis and comparison that a single pixel doesn't.

Really, what are you actually trying to achieve?




View user's profile View All Posts By User
fusso
International Hazard
*****




Posts: 1922
Registered: 23-6-2017
Location: 4 ∥ universes ahead of you
Member Is Offline


[*] posted on 5-5-2018 at 14:37


Quote: Originally posted by j_sum1  
Let's see.
You want to measure the absorbance at a range of wavelengths and output your result as a colour in rgb format.

Why not just take a photo?



There are good reasons for not doing this.
1. Converting your spectrum data to a single rgb value involves a considerable loss of information.
2. The full spectrum lends itself to analysis and comparison that a single pixel doesn't.

Really, what are you actually trying to achieve?


I did think of that but I also think different cameras and lighting would give different rgb values so I think spectrometers would give more consistent data?




View user's profile View All Posts By User
fusso
International Hazard
*****




Posts: 1922
Registered: 23-6-2017
Location: 4 ∥ universes ahead of you
Member Is Offline


[*] posted on 5-5-2018 at 14:56


Quote: Originally posted by j_sum1  
Let's see.
You want to measure the absorbance at a range of wavelengths and output your result as a colour in rgb format.

Why not just take a photo?



There are good reasons for not doing this.
1. Converting your spectrum data to a single rgb value involves a considerable loss of information.
2. The full spectrum lends itself to analysis and comparison that a single pixel doesn't.

Really, what are you actually trying to achieve?


Also I want to map the ions onto a colour wheel or sth like that, just like cities on a map.

And of course the spectrum could be saved for future analysis.




View user's profile View All Posts By User
phlogiston
International Hazard
*****




Posts: 1376
Registered: 26-4-2008
Location: Neon Thorium Erbium Lanthanum Neodymium Sulphur
Member Is Offline

Mood: pyrophoric

[*] posted on 6-5-2018 at 07:04


What you ask is possible and this should point you in the direction:

https://en.wikipedia.org/wiki/CIE_1931_color_space

I don't really see yet why your plan would be a particularly useful thing to do. I've used this myself in the past to calculate the perceived color and saturation from recorded emission spectra of pyrotechnic compositions. The idea was that you could modify the composition, see how the spectrum changes and then calculate what that looks like approximately to the human eye.




-----
"If a rocket goes up, who cares where it comes down, that's not my concern said Wernher von Braun" - Tom Lehrer
View user's profile View All Posts By User
mayko
International Hazard
*****




Posts: 1218
Registered: 17-1-2013
Location: Carrboro, NC
Member Is Offline

Mood: anomalous (Euclid class)

[*] posted on 6-5-2018 at 17:20


BoingBoing recently featured in its store some devices designed to do this with reflected light:

https://boingboing.net/2017/10/24/dont-paint-a-room-without-...
https://boingboing.net/2018/04/21/the-nix-pro-color-sensor-m...

There's also an Arduino sensor which does this, though I was a little disappointed in the few minutes I've had to play with mine:

https://www.adafruit.com/product/1334




al-khemie is not a terrorist organization
"Chemicals, chemicals... I need chemicals!" - George Hayduke
"Wubbalubba dub-dub!" - Rick Sanchez
View user's profile Visit user's homepage View All Posts By User
unionised
International Hazard
*****




Posts: 5103
Registered: 1-11-2003
Location: UK
Member Is Offline

Mood: No Mood

[*] posted on 7-5-2018 at 04:28


It's impossible.
Neodymium glass has only one spectrum, but it has more than one colour.
View user's profile View All Posts By User

  Go To Top