Filtering certain wavelengths from the camera RGB videostream

  • Thread starter Thread starter o1234567890
  • Start date Start date
  • Tags Tags
    Camera Wavelengths
Click For Summary

Discussion Overview

The discussion revolves around the feasibility of determining the wavelength of light at specific pixels in an RGB image captured by CCTV cameras, with a focus on isolating the infrared spectrum (above 850nm) while excluding white light. The participants explore the limitations of using RGB values for this purpose and seek a purely software-based solution.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Exploratory

Main Points Raised

  • Some participants propose that it may be possible to convert RGB values into corresponding wavelengths, suggesting a mathematical formula for this conversion.
  • Others argue that the RGB color model does not provide sufficient information to determine specific wavelengths, as the RGB values represent a combination of visible light and do not directly correlate with infrared light.
  • One participant emphasizes that infrared light is perceived as grayscale by the CCD sensor, complicating the extraction of wavelength information from RGB values.
  • Another participant asserts that the RGB output lacks the necessary data to distinguish between visible and infrared light, stating that any IR signal is indistinguishable from visible light contamination.
  • A later reply elaborates on the nature of color imaging systems, explaining that the sensors cover a wide range of wavelengths and that many combinations of light can produce the same RGB response, further complicating the identification of specific wavelengths.

Areas of Agreement / Disagreement

Participants generally disagree on the possibility of extracting wavelength information from RGB values. While some suggest potential methods, others firmly state that such a software solution is not feasible due to inherent limitations in the RGB model.

Contextual Notes

The discussion highlights limitations related to the RGB color model, including the inability to accurately represent infrared light and the lack of specific wavelength information in the RGB output. There are also unresolved assumptions regarding the nature of light and sensor responses.

o1234567890
Messages
2
Reaction score
0
Hello,

We are using ordinary CCTV cameras to grab color pictures. The representation of the picture in our image processing application is in RGB format.

Is it possible to determine wavelength of the light at particular pixel from RGB values ? The purpose is to cut out all the white light and keep only infrared spectrum (above 850nm). We need software solution, because hardware solution (like IR pass filters on lenses) is not acceptable for us.

Thanks for your advices.
 
Engineering news on Phys.org
bandpass filter
 
billiards said:
bandpass filter

We can't use hardware filters. Our solution must be done completely in a software.

When the RED light comes to the CCD sensor, the CCD produces value RGB=[255,0,0], the GREEN light is [0,255,0] and so on ...

The problem is that when IR light of frequency approximately 850-900 nm comes to the CCD sensor, the sensor sees the light as a grayscale, that meas RGB value is for instance [5,5,5].

We are looking for a mathematical formula, using which we will be able to convert RGB value into the wavelength.

That means RGB value of [255,0,0] will be converted to 700 nm for instance, and RGB value infrared light will be converted to 850 nm.
 
I don't think what you are wanting to do is possible with a RGB signal.
The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors.
http://en.wikipedia.org/wiki/RGB_color_model"

Not only that, but red is visible red not infrared.
 
Last edited by a moderator:
o1234567890 said:
Is it possible to determine wavelength of the light at particular pixel from RGB values ? The purpose is to cut out all the white light and keep only infrared spectrum (above 850nm). We need software solution, because hardware solution (like IR pass filters on lenses) is not acceptable for us.

A software solution is not possible. The information isn't there...you don't know anything about the specific wavelengths the illumination is composed of, only the total intensity of illumination in three bands (for a color camera) from the visual range. Any IR signal is contamination that got through the color filters and is indistinguishable from visible light.

It's not an issue of it being hard or computationally expensive, that information just doesn't exist in the output of the camera. Your only options are to use a real hardware IR-pass filter on the camera, or to do something completely different from what you described.
 
There is some very muddled thinking going on here.
For a start, the basic answer to the question is no.
The following only applies to additive (TV, type) colour reproduction: film is messy and different.
Analysis:
Colour imaging systems use three sensors with analysis curves which are definitely not just 'Red', 'Green' and 'Blue'. All three sensors cover a wide range of wavelengths and match, as closely as practicable, the eye's response with its three colour sensors.
See this Wikki link http://en.wikipedia.org/wiki/CIE_1931_color_space. You percieve a colour (note- not wavelength) because of the relative levels of the signals from the three (very broad band) sensors. These signals are not called RGB but xyz - they are reddish, greenish and bluish, if you like but R, G and B signals only emerge from the process when you want to synthesise a colour. Many different combinations of light of different wavelengths will give you the same subjective 'colour' response. There is no reason to expect to perceive infra red as equal combinations of R,G and B - there is zero response of the blue(ish) sensors to i.r..

Synthesis:
It is possible to synthesise colours which will match the original, subjectively, using suitable combinations of levels of Red, Green and Blue light (Primaries), produced by, say, the phosphors on a TV screen and added together. To get a bright picture, these primaries may well not be 'spot' wavelengths. The RGB signals from the camera (etc) represent the signal which need to be applied to three phosphors (or equivalent) to produce the desired colour sensation.

If you are told that a certain RGB combination was produced from a single wavelength of light then you can work out that wavelength (Look at the CIE chart on the Wikki link) - but other parts of a real picture could have the same RGB combination. So you could not say that you could 'filter' out a particular wavelength - just eliminate a certain colour.

You could identify areas of a picture which were dominated by 'generally far red' signals, where X is much higher than Y and Z, but that's all.
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 18 ·
Replies
18
Views
12K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 152 ·
6
Replies
152
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K