NDVI and NRG
question:ndvi

NDVI stands for "Normalized Difference Vegetation Index". NRG stands for "Near-infrared / Red / Green". NDVI and NRG are both ways to visualize the amounts of infrared and other wavelengths of light reflected from vegetation. Because both these methods compare ratios of blue and red light absorbed versus green and IR light reflected, they can be used to evaluate the health of vegetation. It's a snapshot of how much photosynthesis is happening. This is helpful in assessing vegetative health or stress. (Read more here: https://www.agronomy.org/publications/jeq/articles/36/3/832) ## Do-It-Yourself These techniques for vegetation analysis were developed for satellite imagery, but at Public Lab, we've been working a lot on capturing infrared imagery using our DIY [near-infrared camera](/wiki/near-infrared-camera) setup, and combining it with visible bands to produce NDVI images such as the one above. ## What these images mean What exactly are these images we're trying to make? What do they tell us about vegetation, and why? These diagrams should help to understand what it is we're doing and why these are good ways to analyze plant life. ## The NDVI equation [![NDVI_is_eq.jpg](/i/44723)](/i/44723) **NDVI = (Near Infrared - Red)/(Near Infrared + Red)** NDVI is a ratio which tries to emphasize photosynthesis while filtering out sun glare. The above equation is run for every pixel, using source data from an infrared photo and a visible light photo, like this pair: [![5390895115_c9d4d38fec_o.jpg](https://publiclab.org/system/images/photos/000/021/771/large/5390895115_c9d4d38fec_o.jpg)](https://publiclab.org/system/images/photos/000/021/771/original/5390895115_c9d4d38fec_o.jpg) The result can be false-colored to make the high-photosynthesis areas more clear, and used to examine where plants are and how healthy they are. [![PetVISNDVIcomp.png](https://publiclab.org/system/images/photos/000/021/770/large/PetVISNDVIcomp.png)](https://publiclab.org/system/images/photos/000/021/770/original/PetVISNDVIcomp.png) _Figure above: Normal color photo (right) and normalized difference vegetation index (NDVI) image (left). NDVI image was derived from two color channels in a single photo taken with a camera modified with a special infrared filter. Note that tree trunks, brown grass, and rocks have very low NDVI values because they are not photosynthetic. Healthy plants typically have NDVI values between 0.1 and 0.9. -- @cfastie_ ### Activities Here are a range of activities you can do to produce and interpret your own NDVI imagery, whether downloaded from a satellite imagery provider or [collected yourself using a DIY technique](/wiki/multispectral-imaging) [activities:ndvi] **** ![IMG_0511-split.png](https://i.publiclab.org/system/images/photos/000/000/279/medium/IMG_0511-split.png) ![infrared-combination.png](https://i.publiclab.org/system/images/photos/000/000/278/medium/infrared-combination.png) Most DIY converted cameras today (those from Public Lab) use RGN instead of NRG, so the blue channel represents infrared instead of the red channel. That looks like this: [![rgn-split.png](/i/45468)](/i/45468?s=o) **** ## NRG imagery Some people are also interested in producing NRG imagery (like the below image), where `Near-Infrared, Red, and Green` are used to compose a picture instead of the usual `Red, Green, and Blue`. [![5415783775_502f79ac8c_o.png](/i/25064)](/i/25064) This diagram explains the swapping, which allows us to 'see' infrared as if it were a normal color: [![5396083368_40528d3da2_o.png](/i/25063)](/i/25063) **In NRG images, the deeper and clearer the red color, the denser and healthier the vegetation (more or less).** ### Questions [questions:ndvi] ### Other examples of DIY NDVI imaging From around the internet: Begin watching at 2 minutes to see the resulting imagery: *This topic is part of the [Grassroots Mapping Curriculum](/wiki/mapping-curriculum) series.* **** [![5416397210_5e3be40cf5_o.png](/i/25066)](/i/25066) [![5412520298_93873f36d0_o.png](/i/25065)](/i/25065) ...


Author Comment Last activity Moderation
ccpandhare "Yes @warren, Thanks for the link. I have noted that. But we had a problem with these algorithms not working fairly with the other image... What can..." | Read more » over 7 years ago
warren "Also note connection to this question: https://publiclab.org/questions/warren/06-21-2017/test-images-for-multispectral-image-processing " | Read more » over 7 years ago
warren "My hunch is that since we can't display negative values for pixels, all negative values in the "high-contrast" image are being zeroed out, but in t..." | Read more » over 7 years ago
warren "Hi, Ned - i'm not asking about calibration at this point, just for a way to empirically test (in the sense of automated testing -- https://en.wikip..." | Read more » over 7 years ago
ccpandhare "Hi @cfastie, For the algorithm Which I have put up above, I get a pretty faint image http://preview.ibb.co/eFnfza/vegetation_01_ndvired_new.jpg ..." | Read more » over 7 years ago
warren "Part of the exciting part of this test suite (that we posted a request for here: https://publiclab.org/questions/warren/06-21-2017/test-images-for-..." | Read more » over 7 years ago
ccpandhare "Wow Thanks a lot! This is the output I got: https://preview.ibb.co/dLEw5F/vegetation_01_ndvired.jpg Hope this is what it should look like. It even ..." | Read more » over 7 years ago
cfastie "The algorithm looks good. I guess the next question is does Infragram use the exact same algorithm? (only coders know for sure) The test image you..." | Read more » over 7 years ago
ccpandhare "Thanks for that @warren! " | Read more » over 7 years ago
nedhorning "Hi Jeff - I think I might be able to help with this but I'm not sure what you are looking for. NDVI is simply an algorithm applied to two bands so ..." | Read more » over 7 years ago
warren "Hey @ccpandhare - just a heads up on this! " | Read more » over 7 years ago
cfastie "The text file attached above gives the correct RGB values for the NDVI_VGYRM lookup table. I put an image of the NDVI_VGYRM color gradient in my an..." | Read more » almost 8 years ago
Jtaw "update : I used the lookup table above and did not give me a good result. I hope it is not the colormap used by infragram and there is something el..." | Read more » almost 8 years ago
Jtaw "The lookup table will do for me. I'll try to generate an equation from this one. thanks a lot! " | Read more » almost 8 years ago
cfastie "I think the algorithm to convert a blue- or red-filtered NIR photo to color NDVI is something like this: Start with a color photo in which one ch..." | Read more » almost 8 years ago
sujayj "Thanks Chris " | Read more » almost 8 years ago
cfastie "You can use any filter that blocks most blue and green light (all visible light other than red) and also passes a lot of near infrared light (somew..." | Read more » almost 8 years ago
warren "Hi, just wondering about my question on the screw in the photo below -- is that to unscrew the lens assembly itself? " | Read more » almost 8 years ago
suman "There's no information about making GoPro first version to full spectrum in the internet...i have done a lot of research in the web and found nothi..." | Read more » almost 8 years ago
warren "Can you show a picture of the front and back as well? I think i see a screw, but not sure... " | Read more » almost 8 years ago
warren "Hmm, very hard to follow without images, huh? I wonder if there are any YouTube tutorials? " | Read more » almost 8 years ago
suman "Found this on the DIYdrones forum :http://diydrones.com/forum/topics/go-pro-camera-near-ir?id=705844%3ATopic%3A767644&page=2#comments But stil..." | Read more » almost 8 years ago
suman "Dear Warren, This is the first version of GoPro Hero HD without screen not Hero 2 (although it looks quite similar). Yeah the lens is fixed (no ..." | Read more » almost 8 years ago
warren "Via @wildintellect on the plots-infrared discussion list: Replace the lens, there are several aftermarket GoPro lens made for IR. http://stuntcams..." | Read more » almost 8 years ago