Public Lab Research note


Comparing different filters for making NDVI images using the calibration plugin

by nedhorning | August 10, 2015 21:30 10 Aug 21:30 | #12134 | #12134

This research note compares four different filters using the new calibration capabilities in the photo monitoring plugin: http://publiclab.org/notes/nedhorning/07-22-2015/introducing-the-calibration-plugin-for-imagej-fiji

The images for this set of tests were acquired during iFARM 2015: http://publiclab.org/notes/cfastie/05-21-2015/ifarm-2015-report. The four filters are from MidOpt: DB660/850 red / NIR-pass narrow band filter: http://midopt.com/filters/db660850 DB475/850 blue / NIR-pass narrow band filter: http://midopt.com/filters/db450850/ 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.

IMG_1406_small.JPG

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.

CRW_0198_NDVI_Color_NoSubtract.jpg

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.


6 Comments

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

Regards Agustin

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

Reply to this comment...


HI Agustin - I put the images on my server here: https://resources.cbc.amnh.org/cbccloudstorage/public.php?service=files&t=12385a3a09a4879fcffc8da03052184f

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.

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

Reply to this comment...


@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?

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

Reply to this comment...


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.

Reply to this comment...


How you are validating the NDVI calculation

Reply to this comment...


For the most part I am not able to reliably and accurately validate NDVI calculations. To validate results you would need to have targets with known reflectance values that are not used as part of the calibration. You can use published reflectance curves to estimate NDVI from certain features and that will let you know if your results are roughly accurate. Using a spectrometer would provide more accurate reference data.

Reply to this comment...


Login to comment.