| New Reply |
Determining colour from |
Share Thread |
| Nov7-12, 04:08 PM | #1 |
|
|
Determining colour from
Suppose I have a picture of a flame, or some other blackish-body like emitter, and I can see that the RGB value of a part of the flame is [106, 216, 177]. How would I go about determining the temperature of this?
I'm sure you'd use Wien's law etc, but I can't see how to get from the RGB value to the frequency. Thank you. |
| Nov7-12, 05:43 PM | #2 |
|
|
I don't think you can. You would probably need a spectrograph. The problem is that each color has overlap from each other color along with different quantum efficiency, which is how many photons the sensor records compared to how many photons there originally were. Also, each color is recording a large range of wavelengths within it's range, not all of which are equally captured by the sensor.
If you knew the QE of your sensor, and were able to take very good calibration and test frames you MIGHT be able to get an approximation, but I don't know how accurate it would be. Perhaps a bit better than using your eyeball and saying "It looks deep red, so it's X temperature". |
| Nov7-12, 08:48 PM | #3 |
|
|
Here's something that might help (or might at least get you started).
http://www.eetimes.com/ContentEETime...icle_Final.pdf Good luck!
|
| Nov8-12, 05:49 PM | #4 |
|
|
Determining colour fromYou could take spot readings of known 'hot objects' like the sun and photographic lamps, that have a tight colour temperature spec as long as you give them the right voltage. They are obtainable from several suppliers, I believe. Alternatively, if you had access to a spectrometer, you could measure the spectrum from a tungsten lamp at different temperatures and use that to determine those temperatures. At the same time, you could record RGB values from your colour sensor. This would calibrate the camera for you. Do you mean peak frequency / wavelength at a given temperature? |
| Nov9-12, 10:39 AM | #5 |
|
|
You can make a simple spectrograph using your camera and a prism. I'm sure you could find the details online somewhere.
|
| Nov9-12, 04:23 PM | #6 |
|
|
I guess the characteristics of the three sensors in the camera could be obtained from the manufacturer and that could help. The problem lies with the limited info from three ( RGB ) signals, I think, and I reckon you would need some know light sources to that you could calibrate the system before you could get valid results. The software inside cameras does calculate its own version of the colour temperature of a scene, when you are working with RAW format. I guess it depends upon the accuracy that's required in the OP. |
| Nov9-12, 04:59 PM | #7 |
|
|
I don't know the details, I only know that you can do it. At least, that's what my book on Spectroscopy for Amateurs says. It has the details, only I don't have access to it until I move back to Tucson in 6 months. This is the book: http://www.amazon.com/Astronomical-S...s=spectroscopy
|
| Nov9-12, 05:33 PM | #8 |
|
|
|
| Nov9-12, 10:49 PM | #9 |
|
Recognitions:
|
3 readings are enough to establish temperature assuming perfect black body. It would help greatly, however, to know the response spectra of the RGB pixels.
I have some code I wrote a few years ago that generates an RGB triple based on temperature. It's not exactly the same thing, because I was basing the values on RGB output frequencies and human eye response, so camera RGB values might not be exactly right. If you just need an estimate, however, this could work. All you'd need to do is sweep through temperatures and look for T that gives you the best fit, after brightness adjustment, to the three values you have. Unfortunately, I haven't kept a great track of all my sources for the formulae. These could have been of greater use for you. Edit: Specific values you provided, by the way, cannot correspond to a black body radiation of a flame. If you didn't just make these up, you cannot treat that flame as a black body. |
| Nov10-12, 09:51 AM | #10 |
|
|
How far from black body are those values? Could it be affected by background lighting? We don't know about the actual measurement setup. It's just possible that our enthusiastic responses have manged to scare Ashiataka off! We haven't heard from him / her for a while. Come baaaaack! |
| Nov10-12, 10:11 AM | #11 |
|
Recognitions:
|
Very far. Temperatures you can get from a flame would correspond to colors red to white. Sun = 5700K. [106, 216, 177] is teal. Even assuming an error due to camera, we are talking about something in the 10kK+ range.
|
| New Reply |
| Tags |
| black-body, colour, rgb, temperature, wien's law |
Similar discussions for: Determining colour from
|
||||
| Thread | Forum | Replies | ||
| What can be Determined from Colour-Colour Diagrams? | Astrophysics | 3 | ||
| What is Colour? | General Physics | 2 | ||
| sky a different colour | General Discussion | 12 | ||
| buy paint for the offices | General Discussion | 13 | ||
| colour | General Physics | 9 | ||