I can't do ndvi for Landsat8 satellite image

2 Ansichten (letzte 30 Tage)
Yavuzhan Çepni
Yavuzhan Çepni am 24 Mai 2020
Kommentiert: Yavuzhan Çepni am 26 Mai 2020
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.

Antworten (3)

Image Analyst
Image Analyst am 24 Mai 2020
Somehow you need to read in the band images. For example, can you use multibandread()?
  8 Kommentare
Image Analyst
Image Analyst am 25 Mai 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 am 26 Mai 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.

Melden Sie sich an, um zu kommentieren.


Yavuzhan Çepni
Yavuzhan Çepni am 25 Mai 2020

Yavuzhan Çepni
Yavuzhan Çepni am 25 Mai 2020
  9 Kommentare
Image Analyst
Image Analyst am 25 Mai 2020
You need a dot before the slash:
Ndvi = (NIR - R) ./ (NIR + R);
Yavuzhan Çepni
Yavuzhan Çepni am 25 Mai 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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by