Apply NDVI to images with OpenCV and Java [closed]

1

Hello, good afternoon.

I need help with image processing using the OpenCV library. Basically, I need to take a satellite image and apply the NDVI (vegetation index by normalized difference). Its calculation is simple:

NDVI = (NIR - RED) / (NIR + RED)

Where Near Infrared (NIR) is the image of band 5 that is infrared and RED is the image of band 4, which is red.

But after applying this formula I have no results other than a black background image. If anyone can help, thanks.

More information at this link: link

    
asked by anonymous 17.04.2015 / 20:41

0 answers