Incompatible browser

The Public Laboratory website will not render correctly in Internet Explorer 6 or earlier. To view it properly, please use an up-to-date browser, such as Firefox, Chrome, or another standards-compliant browser. It's a good idea to upgrade anyways -- olderversions of IE pose a security risk for your computer.

NIR Camera Calibration

Hi all, warm Greetings

I am new in NIR photography so i have some questions regarding the white balencing, caliberation etc. Actually i have Nikon D70s Camera modifed for NIR imaging. I got replaced the internal hot mirror filter with the filter that can pass Red and NIR light only. i.e my camera can now pass only NIR and Red band of light. My purpose is to generate the NDVI image from the image that i take with this modifed camera. Actually i have to convert the digital DN values to the reflectance for calculating NDVI. I am not sure how to do this?

Another thing is that i have to separate RED and NIR from the single image. Because NIR is mixed in each band (RGB) and the sensitivity of the three different Bayer filter might not be same for NIR light. So how can i separate NIR and RED from the image? Any other suggesstion on getting NDVI with this modifed digital camera will be highly appriciated.
Regards
Babu

Comments

cfastie's picture

Hi Babu,

My limited experience with these techniques leads me to suggest that it will be quite difficult to separate the red and near infrared bands if your new filter passes all wavelengths greater than 600 nm. This is because the red channel in the camera is now sensitive to NIR and will generally record a lot of NIR in addition to the red. The blue channel will probably include no blue, very little red, and some NIR, so it might be suitable for a source of NIR data but it will be a weak signal (the blue Bayer filter is often somewhat opaque to NIR). The green channel will record some NIR and a little red, so is probably not helpful.

It is more common to replace the camera’s IR block filter with a filter that BLOCKS all red light and passes NIR and also blue and green. Then the red channel is used as a source of NIR data and the blue channel is used as a source of blue data, assuming that there is not very much NIR included. The blue data is appropriate as a substitute for red in the calculation of NDVI because healthy foliage absorbs it for photosynthesis just as it absorbs red.

Chris

warren's picture

Hi babu - can you upload an image of vegetation from your camera? It would be really interesting to see.

Babu's picture

Thanks Cfastie and warren for your comments and suggestions.
Can you suggest me some filters that might pass the NIR , Blue and Green and blocks RED. I would prefer to use the internal filter in my camera. I used lifepixel supercolor filter and it is on the way shipping. I will receive it by next week. After i receive i will post some sample pictures as soon as possible.
Besides that i would also like to see the results by using some other filter like Cfastie mentioned. So please can you suggest me filters that can suit best for my study???
Is there any possiblity to caliberate the camera by using Handheld spectrometers so that i can get good results with the technique that i mentioned earlier??? Thank you .

nedhorning's picture

Hi Babu,

As I was writing this I see you got some good comments - here are some more.

Lots of good questions. I'm also looking for answers to some of these questions and can fill you in on what I've learned so far.

Ideally we would calculate NDVI from radiance (what the sensor measures) but unless we have a way to calibrate the camera, a fairly complex process, that's not possible. An alternative is to develop methods to standardize or normalize NDVI images acquired using different IR cameras so they can be compared . I think white balance is one step to accomplish that but only if the NDVI images are created using similar bands (wavelength range) for the red and NIR layers.

I haven't used a filter that passes red and NIR light but my guess is that it will be difficult to get a good red and NIR layer from your image for the reason you mention. Have you looked at the three individual image layers to see if they are very different. If you take a photo of green healthy vegetation a decent red band would be quite dark and the NIR band would be relatively bright for vegetated areas of the scene. If you don't have good enough differentiation to create NDVI images there are some other options you can try or you can use your converted camera with a NIR filter over the lens and a second unmodified camera for the red band.

One of the other options is to play around with subtracting different layers (e.g., red-blue, green-red...) to see if the differenced images produce suitable layers for NDVI. It's quite possible that will work. I would also try setting white balance using a gray card and also green vegetation before taking your photos to see if that helps.

I'd be happy to look at one of your images to see if they would work to make NDVI.

I hope this helps,

Ned

nedhorning's picture

Hi Babu,

As I was writing this I see you got some good comments - here are some more.

Lots of good questions. I'm also looking for answers to some of these questions and can fill you in on what I've learned so far.

Ideally we would calculate NDVI from radiance (what the sensor measures) but unless we have a way to calibrate the camera, a fairly complex process, that's not possible. An alternative is to develop methods to standardize or normalize NDVI images acquired using different IR cameras so they can be compared . I think white balance is one step to accomplish that but only if the NDVI images are created using similar bands (wavelength range) for the red and NIR layers.

I haven't used a filter that passes red and NIR light but my guess is that it will be difficult to get a good red and NIR layer from your image for the reason you mention. Have you looked at the three individual image layers to see if they are very different. If you take a photo of green healthy vegetation a decent red band would be quite dark and the NIR band would be relatively bright for vegetated areas of the scene. If you don't have good enough differentiation to create NDVI images there are some other options you can try or you can use your converted camera with a NIR filter over the lens and a second unmodified camera for the red band.

One of the other options is to play around with subtracting different layers (e.g., red-blue, green-red...) to see if the differenced images produce suitable layers for NDVI. It's quite possible that will work. I would also try setting white balance using a gray card and also green vegetation before taking your photos to see if that helps.

I'd be happy to look at one of your images to see if they would work to make NDVI.

I hope this helps,

Ned

Babu's picture

Thanks ned. I will post pictures as soon as possible.

cfastie's picture

Babu,
Here is a paper about getting separate NIR and red bands by doing what Ned suggested – subtracting one band from another: http://cigr.ageng2012.org/images/fotosg/tabla_137_C1122.pdf

Here is a modified camera that can produce “NDVI” images -- http://www.maxmax.com/vegetation_stress_mkii.htm

The filter in this “vegetation stress” camera blocks red and passes NIR, and replaces the IR block filter in the camera -- http://www.maxmax.com/ndvi_camera_technical.htm

This site has some very useful data about the sensitivity of cameras with their IR block filters removed -- http://www.maxmax.com/spectral_response.htm . These illustrate that the blue channel will include quite a bit of NIR data. This means that when the blue channel is used as a substitute for red in the calculation of NDVI, the result will be far from perfect. Unless you can figure out how to "subtract" NIR from the blue channel.

The filter used in the vegetation stress camera is apparently not available unless you pay MaxMax to install it in a camera.

Chris

Babu's picture

Thank you cfastie for your kind sugession. I will be in touch very soon with the image captured from the modified camera. Thanks alot

Babu's picture

Dear All

I have attached the first image with my modified camera, where internal hot mirror filter is replaced by the Lifepixel super color filter , in the following link.
https://www.dropbox.com/s/42r5s5rx9713tr3/DSC_0046.JPG
I have also the RAW image format of it which i did not include here now because of large size.

I need to get the pure NIR and Red band or equivalent from this kind of images so that i can make NDVI images. I will be happy to see your comments , suggestions always how this can be best achieved.

Thank you all. Merry Christmas and Happy New year.

cfastie's picture

Babu,

The new camera is going to be very fun to use. It would be interesting to see a histogram for each channel from an image like that one. We can hypothesize that any data in the green channel is NIR light plus a little red, and any data in the blue channel is mostly NIR. The data in the red channel will include a mix of red and NIR. So:

Channel....... Data recorded
Blue............. NIR
Green........... NIR (plus some red)
Red ............. Red plus NIR

What you don't have is a channel that is mostly red with no NIR. And you need that to compute NDVI. Or you could use a channel that is mostly blue because blue is absorbed by healthy vegetation just as red is, but you don't have that either.

It might seem logical to compute a red channel by subtracting the blue channel from the red channel. So:

(red + NIR) - NIR = red

It makes no sense to me that this would work.

But you can test whether it does or not. Find a simple scene with healthy plants, some other green things that are not plants, and some non-green non-plants. Take a photo with your new super blue camera and also with a similar unmodified camera. The two photos should be precise repeats. Then calculate NDVI in two ways. First do the above math to compute a red channel and compute NDVI using that as red and the blue channel as NIR. Then compute NDVI using the same blue channel as NIR and the red channel from the unmodified camera as red. This requires that you register the two images so the red channel from the unmodified camera matches the channels from the super blue camera. If the two versions of NDVI are similar, you have good reason to believe that subtraction can produce a computed red channel.

Chris

Babu's picture

Thanks Chris for your nice comments and sugesstions.

I have some more confusion which i am looking to resolve.
As i know Bayer filter used in this camera has two green, one red and one blue filter on top of CCD but as can be seen from the image acquired with the modife camera, the blue channel seems more sensitive to the NIR. Since the content of NIR in RED channel, Blue channel and green channels are not the same, normal substraction might not work well as you have said earlier. Instead there might be some relations which also considers the fact of Bayer filter operation would be required but i dont have any specific idea on it.
As you mentioned the use of similar unmodified camera for this purpose would be one of the way to validate whether the simple substraction to retrieve the RED channel might be very useful but i dont have the similar camera and different unmodified camera might not be proper for comparision. I would try my best to find the similar camera. If not possible to get the same camera, will it be effective to use some other DSLR camera from NIKON or Cannon???

As the lifepixel supplies the Transmission charecteristic of the filter that i have used on this modified camera is not perfectly 100% for the whole range of NIR as can be seen from the link below.
http://www.lifepixel.com/infrared-photography-primer/ch4-internal-filter...
the transmission charecteristic goes down to 80% in the NIR range so are there any methodology to compensate this degradation???

In addition when the picture is taken in different Exposure , the picture looks very different and the DN value in each channel also varies. So in such case, i might also need look for the optimized exposure value for the camera. Any sugession on it??
In such situation do you have any specific recommendation, sugessions . Can you also recommend me some techniques using ASD field spectrometers which might be useful for this cae.
Thanks for your nice generous comments and sugessions once again. Hope all of you have very nice time , Happy New year!!!!!!!!!!!!!!!!!!

cfastie's picture

Babu,

You might be right that the blue channel is more sensitive to NIR, based on the fact that the healthy foliage in your super blue photo has a bluish tinge. We know the red channel should be recording some NIR in addition to red, so why doesn’t the foliage appear reddish? The color in the final image is a combination of whatever is in all three channels, so there must be a lot of light getting through the blue Bayer filters. And I guess there must be more light getting through the blue Bayer filters than through the red Bayer filters. There is no blue or green light getting through your super blue filter, so all the light in the red and blue channels is red and NIR. Assuming there is very little red being reflected from healthy foliage, there must be more NIR being recorded by the blue channel than the red channel. But these differences are small (and my logic probably flawed), so it might be that the blue tinge is just an artifact of white balance. You could test this by repeating the photo with different white balance settings.

The camera you use to take a normal version of your super blue photo does not have to be identical to the super blue camera. The most important thing is to be able to register it very well with the super blue photo. That means the focal length and the resolution should be very close. You could resample both images to the same pixel resolution after they are taken. You just need a normal red data channel for each pixel of the super blue image.

The pattern of IR transmission of the super blue filter probably does not matter much. When NDVI is computed from modern satellite data, the NIR band used is very narrow, just a few dozen nm. We cannot replicate that, so we use the very wide NIR band we can get from a camera. The important thing is to make sure there is not much red data in the NIR band you are using. That is your main problem.

I don’t know why the super blue photo would look different at different exposures unless maybe automatic white balance was on.

I don’t know what ASD field spectrometers are.

Chris

Babu's picture

Hi all,
I have a question about White balancing.
As i have mentioned earlier, the modified camera RED band is mix of RED+NIR, green band is more NIR+less RED and Blue band is mostly NIR. When i apply custom white balance using gray card, the significant change i could see is on the RED band of the image, remaining other bands almost similar before and after white balancing. What could be the reason that the RED band is more affected by the white balancing?? Anyone please can you sugest me?? Thanks in advance.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].

More information about formatting options

To prevent automated spam submissions leave this field empty.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.