Public Lab Research note

  • 2

Comparing different filters for making NDVI images using the calibration plugin

by nedhorning |

This research note compares four different filters using the new calibration capabilities in the photo monitoring plugin:

The images for this set of tests were acquired during iFARM 2015: The four filters are from MidOpt: DB660/850 red / NIR-pass narrow band filter: DB475/850 blue / NIR-pass narrow band filter: DB650/808 red / NIR-pass narrow band filter DB450/808 blue / NIR-pass narrow band filter

The filters were attached to a Canon A2200 digital camera with the NIR-block filter (hot mirror) removed and a filter tube taped to the camera body with duct tape. The different filters were threaded on the tube for each shot while the camera was secured with a tripod.


For the Calculate image calibration coefficients plugin I subtracted 80% of the NIR form the visible band. I used the RAW images processed using the following dcraw command: dcraw -r 1 1 1 1 -o 0 -q 0 -4 -T /home/nedhorning/filterTesting/InputImages/CRW_0199.DNG

This dcraw command creates an RGB 16-bit TIFF image without applying white balance or gamma correction. I used the raw images since the JPEG image saturated on the bright target.

To do the calibration I used only two targets, a bright white sheet of computer printer paper and a piece of tar paper.

Below are the NDVI images created using the calibration work flow. All of the images were colored using the NDVI_VGYRM look-up table.

ColorBarNumbers.jpg NDVI_VGYRM look-up table

CRW_0196_NDVI_Color.jpg DB660/850 red / NIR-pass narrow band filter

CRW_0199_NDVI_Color.jpg DB475/850 blue / NIR-pass narrow band filter

CRW_0195_NDVI_Color.jpg DB650/808 red / NIR-pass narrow band filter

CRW_0198_NDVI_Color.jpg DB450/808 blue / NIR-pass narrow band filter

The results for some of these filters would be improved by changing the percent of NIR that is subtracted from the visible channel. For example, here is the DB450/808 filter result if the subtraction of NIR from the visible band was not done.


Each filter will requite a little experimentation to find the "best" percentage of NIR to subtract from the visible band but I don't expect that value will vary with scene conditions but only time will tell if that assumption is accurate.

So, what conclusions can we draw from this note? Without investing the time to tune the calibration it's difficult to do an objective comparison. We can compare the photos to see how basic NDVI patterns throughout the images differ and note some areas where one filter appears to be more sensitive to changes than another but that's about all. I'm curious if anyone has comments about the photos. Unfortunately since I'm using raw TIFF images they are too large (~85MB) to post on this site but if anyone is interested in calibrating some of these images please contact me and I'll try to figure out a way to get them to you.

When working with just two different calibration targets the process of selecting an optimum percentage of NIR to subtract from visible is quite subjective. Basically you run the plugin, look at the result and run it again with a different value and compare. After several runs with different values you will be able to settle on one that looks good. In my next note I'll try to demonstrate a method that uses multiple calibration targets to more objectively determine calibration parameters.

ndvi-calibrate midopt


@nedhorning Great Job Ned!! could you please send me the original pictures of the 650/850 filter ?

Regards Agustin

HI Agustin - I put the images on my server here:

The password is: filterTest

Please let me know if you have trouble accessing them. I put a readme file in the directory with information about the images and reference reflectance CSV files. If you do anything with these images please post your results here.

@nedhorning thanks for all your work Ned. I am curious if we can use the usual gray and black cards for white balance as calibration targets and if possible has anyone ever found out the reflectance values for any brand of cards?

I haven't seen reflectance curves for the "standard" white balance cards that include the NIR region of the spectrum. My guess is they would differ from card to card in the NIR and the reflectance curve wouldn't be flat in the NIR but I never tested that.

You must be logged in to comment.