I can't do ndvi for Landsat8 satellite image
2 views (last 30 days)
Show older comments
Good day to everyone. I just started Matlab and I am facing NDVI problem.ndvi = (NIR - R) ./ (NIR + R) I know the code but I can't define R and NIR I will be working on the Landsat8 image. Please help. Thanks in advance.
0 Comments
Answers (3)
Image Analyst
on 24 May 2020
Somehow you need to read in the band images. For example, can you use multibandread()?
8 Comments
Image Analyst
on 25 May 2020
Maybe the txt file will tell you what band/image is what wavelength. What's in it? Can you attach the txt file? Or else ask the owners of the site.
Yavuzhan Çepni
on 25 May 2020
9 Comments
Image Analyst
on 25 May 2020
You need a dot before the slash:
Ndvi = (NIR - R) ./ (NIR + R);
See Also
Categories
Find more on Hyperspectral Image Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!