# Mobius and NIR

by cfastie | 17 Apr 17:39

Above: The Mobius ActionCam (top), one of the earlier "spy" cams (lower), and LEDs for testing.

The Mobius ActionCam is the latest in a long line of tiny "spy" cameras. Most cameras in the line cost between $5 and$40 and take still photos and video of variable quality. Until the Mobius was released last summer, all the models were cleverly disguised as car keyless entry remotes. The Mobius breaks into a new form factor with a bigger case and rectangular shape. The image quality, battery life, controls, and support have improved, and the price has jumped to \$70. The Mobius is being marketed as an action cam which can be mounted on a helmet, dashboard, handle bars, or ski pole. A camera needs no viewfinder for these applications, and like the predecessors, the Mobius has no viewfinder or screen -- it really is a point and shoot.

The sensors in all of these small cameras (and also in all web cams) are built with CMOS sensors, not the CCD sensors that most low-end Powershots use. When converted for use as infrared cameras, cameras with CMOS sensors give different results. To figure out how to get the best information about plant health from an IR converted Mobius camera, I have started a series of tests.

Before I removed the IR block filter from the camera, I wanted to see how its response to infrared light differed from a typical unmodified PowerShot with a CCD sensor. In a completely dark room, I took some still photos of the light from single LEDs reflected from a frosted white lamp globe. I have done this before for similar reasons. I used a regular red LED and two near infrared ones: one which emitted light around 850 nm, and one around 950 nm. The results from the red LED below are just to remind you what color histograms mean. It is an unwritten rule of the photographic priesthood that "Neither axis of the the histogram graph shall ever be labelled." There is more explanation here, but basically farther to the right of the graph means that color is brighter. In the photo of a red LED, the red channel has much brighter values than the blue or green channels, as we would expect.

Histogram for the reflected light (square marquee) from a red LED. For each pixel in the selected area, the red channel in the jpeg has much higher brightness values than the blue or green channels.

The near infrared LEDs are harder to photograph because the light is invisible to me, and not very bright to cameras that have infrared block filters installed. The Canon S95 has a live view on the LCD so I can see whatever NIR light it could sense, but the Mobius I had to just point and shoot in complete darkness. Both cameras used the "Sunny" white balance setting. Although the histograms display the light recorded by each channel as red, green, or blue, in the photos below 100% of the light is completely invisible near-infrared light that is being recorded in all three of the color channels (in spite of the factory IR-block filter installed).

Color histograms of homogeneous areas (marquees) of parts of photos taken by a Canon PowerShot S95 (top) and a Mobius ActionCam (bottom) of the light from a 850 nm LED reflected from white frosted glass.

Color histograms of homogeneous areas (marquees) of parts of photos taken by a Canon PowerShot S95 (top) and a Mobius ActionCam (bottom) of the light from a 950 nm LED reflected from white frosted glass.

There is not much difference between the photos using the 850 nm and 950 nm LEDs. For each camera, exposures were the same for both LEDs. This suggests that each camera does not differ much in its sensitivity to NIR light at 850 versus 950 nm.

For either LED, there is a big difference between the histogram from the two cameras. The S95 photo is brighter, so the values in the histogram are farther to the right. That is just an artifact of the way I took the photos and the smarter exposure controls on the S95. There is more color in the S95 photos, so the three channels are more separated in the S95 histograms (the green channel is much darker than the red and blue). Like the human eye, inexpensive cameras have poor color response when there is not much light. But those differences are probably not relevant to the question of how NDVI derived from either camera might differ after the IR block filters are removed.

NDVI is computed from the difference between values from an NIR channel and a visible light channel. For example, an infrablue filter (e.g., Rosco 2007) in a camera with no IR block filter allows NIR light to be recorded in the red channel, and normal blue light to be recorded in the blue channel. So the difference in brightness between those two channels is critical. The results above suggest that both cameras record more NIR light (either 850 or 950 nm) in the blue channel than in the red channel (the blue histogram is farther to the right than the red). For some reason, the blue channel is getting more NIR light than the other two channels. But most importantly, there is essentially no difference between the PowerShot and the Mobius in the relationship between the NIR sensitivity of the blue and red channels. In both cameras, the blue channel is getting a little more NIR light than the red channel.

So the blue channel might be better for recording NIR light because it appears to be more sensitive to NIR. If the blue channel is used to record visible light, it might be harder to prevent some NIR light from contaminating the visible light signal, compared to using the red channel for visible light.

But these results shed no light on the difference between CMOS and CCD cameras for producing NDVI images. It is now time to remove the IR block filter from the Mobius ActionCam and repeat this exercise.

I'm surprised at the IR passing of the Powershot. nice research. really should buy some of those NIR LEDs myself.

Chris, do you have raw versions of these images I could look at?

Is this a question? Click here to post it to the Questions page.

Hi Tom, I didn't capture RAW with the S95, and the Mobius does not do RAW (although the firmware is open source, so it's possible). I could capture a RAW image of each IR LED with the S95. Let me know if that would be useful. Would a red or blue LED image also help? Chris

Is this a question? Click here to post it to the Questions page.

Tom, Maybe it would also be useful to you to have DNG images (via CHDK) from my full spectrum Canon A810?

Is this a question? Click here to post it to the Questions page.

Wow, that was quick. Too bad about the Mobius not doing raw. I feel like a I have decent handle on the Canons, but the Mobius is so light and potentially so useful, I'm really curious to understand what is going on before the on camera signal processing kicks in...

you know, if the little color filters in Mobius cmos sensor Bayer array have the same spectral response as some of the CCD sensors I've seen around the web, all three bands should have about the same response at 850nm. It would be interesting to see what would happen to the histograms if you used a 750nm LED.

You're right, that would be a revealing test. In the example you referred to (below), the red channel should be three times more sensitive than the blue at 750 nm. The in-camera processing probably won't be designed to deal with that difference (because it usually does not have to deal with NIR light), so the red channel might get more light assigned to it than it needs.
.

We don't know what kind of color filter array the Mobius (or any small CMOS camera) has. It might not be Bayer. However, I might have taken a photo of the Mobius array. If I had a 750 nm LED I would do the test.

In the note on Mobius NDVI, the Mobius photo with a Wratten 25A filter produced good NDVI. Here are the three channels of that photo:

.

The red channel was not assigned too much light, even though the incoming light must have included plenty at 750 nm. The white balance settings had the proportion Red 310, Green 500, Blue 700. That de-emphasized the red channel just the right amount. The blue channel should be darkened a bit next time.