how do we calculate vegetation using ndvi------can u plz provide me with the code

6 vues (au cours des 30 derniers jours)
BUGATHA VARALAKSHMI
BUGATHA VARALAKSHMI le 25 Déc 2016
Commenté : yun li le 11 Mar 2021
ndvi
  3 commentaires
sajeela khan
sajeela khan le 27 Jan 2018
can u plz tell me the difference between them LandSat8 RapidEye
Manisha Kumawat
Manisha Kumawat le 28 Juil 2018
Can i apply this code on irs Resoursesat images

Connectez-vous pour commenter.

Réponses (2)

Cyrus
Cyrus le 25 Déc 2016
Modifié(e) : Cyrus le 25 Déc 2016
if it is landsat8 image:
Formula: NDVI = (NIR -R) / (NIR + R)
File_Path = 'path\'; %%keep the \
File_Name = 'LC80292015263LGN00_B';
Band_Number = '3';
Full_File_Name = strcat(File_Path, File_Name, Band_Number, '.TIF');
[G, ~] = geotiffread(Full_File_Name);
clearvars Band_Number Full_File_Name
Band_Number = '4';
Full_File_Name = strcat(File_Path, File_Name, Band_Number, '.TIF');
[R, ~] = geotiffread(Full_File_Name);
clearvars Band_Number Full_File_Name
Band_Number = '5';
Full_File_Name = strcat(File_Path, File_Name, Band_Number, '.TIF');
[NIR, ~] = geotiffread(Full_File_Name);
clearvars File_Path File_Name Band_Number Full_File_Name
G_heq = histeq(G);
R_heq = histeq(R);
NIR_heq = histeq(NIR);
NIR = double(NIR_heq);
R = double(R_heq);
G = double(G_heq);
NDVI = (NIR -R) ./ (NIR + R);
figure(), imshow(NDVI, []), title('NDVI');
colormap(jet);
colorbar;
impixelinfo
  1 commentaire
yun li
yun li le 11 Mar 2021
Excuse me, how to calculate NDVI for an image with multi-band information?

Connectez-vous pour commenter.


sajeela khan
sajeela khan le 27 Jan 2018
how can we find the NDVI using miltispectral image
  1 commentaire
Amit Bhasin
Amit Bhasin le 20 Fév 2019
Hey Cyrus,
Thank for the answer. What if I have images collected (multispecratl images; 5 bands; R,G,B, NIR, Red-edge) from a drone?
Thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by