I can't do ndvi for Landsat8 satellite image

2 views (last 30 days)
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.

Answers (3)

Image Analyst
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
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
Yavuzhan Çepni on 26 May 2020
Thank you very much, you took your time, but I took care of it. There are already 12 tapes in the folder, all completed one by one. Thank you so much.

Sign in to comment.


Yavuzhan Çepni
Yavuzhan Çepni on 25 May 2020

Yavuzhan Çepni
Yavuzhan Çepni on 25 May 2020
  9 Comments
Image Analyst
Image Analyst on 25 May 2020
You need a dot before the slash:
Ndvi = (NIR - R) ./ (NIR + R);
Yavuzhan Çepni
Yavuzhan Çepni on 25 May 2020
yes, but the real problem is I can't identify the R and NIR bands, so I can't do that.I tried it many times but it does not.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!