We made it! Thanks for supporting Public Lab's 🎈 Mini Balloon & Kite Kit (part of Kickstarter Gold) -- watch the video!


  • 1

Question:How to verify generated NDVI Images?

ccpandhare asked on July 08, 2017 12:50
78 | 0 answers | shortlink


I am a Google Summer of Code Student working with Public Lab. I am working on the Image Sequencer Project.

In one JavaScript Module, I was required to generate the NDVI version of a given image. How do I know if the generated image is correct? I am surprised because my result varies from what I get on Infragram.

This is the GitHub Issue where Jeff and I were discussing about this.

I replace every pixel of the image using this algorithm:

input pixel => (r,g,b,a)
ndvi = (b - r) / (b + r)
x = 255 * (1 + ndvi) / 2
output pixel => (x,x,x,a)

Is this correct?



question:ndvi


10 Comments

Log in to comment

0 Answers

Sign up or Login to post an answer to this question.