Modifying the NDVI Values Using Multispectral Images

12 ビュー (過去 30 日間)
Thomas Taufan
Thomas Taufan 2020 年 6 月 1 日
コメント済み: Image Analyst 2020 年 6 月 7 日
Can I determine the minimum and maximum value of the NDVI variable? How do I make a threshold for example higher or equal to 0.3 are green and lower than that are red? Can I make bounding box for the specific pixels that has low values?(but in the plant area, not the road or things that are not vegetation)
Below is the code I used to compute :
R = imread('RED.TIF');
NIR = imread('NIR.TIF');
NDVI = (double(NIR) - double(R)) ./ (double(NIR) + double(R));
imshow(NDVI, []);

採用された回答

Image Analyst
Image Analyst 2020 年 6 月 1 日
Try this:
maxValue = max(NDVI(:))
minValue = min(NDVI(:))
binaryImage = NDVI > 0.3;
You might also be interested in my interactive thresholding app in my File Exchange.
  9 件のコメント
Thomas Taufan
Thomas Taufan 2020 年 6 月 7 日
Hello Image Analyst, could you please take a look at my question? Thank you
Image Analyst
Image Analyst 2020 年 6 月 7 日
The values from imread() are assumed to be the RGB values of the image. Like you said the R channel goes from 620 to 750 which seems a bit more IR than normal. But it's possible if you have a camera where they changed or got rid of the IR cutoff filter that is normally on top of the sensor. But a normal DSLR or machine vision camera would not have sensitivity out to 750 nm, only to about 700 or so. From 700 to 750 is near IR - very near. So near that it's actually missing most of the band that people would call near IR which is roughly 700 or 750 to about 1200-1400 nm. So band 3 which you extracted from Original_Picture is actually mostly red, unless you have a special camera to filter out the red and allow only wavelengths greater than 700 in. To get better IR you need to get a camera that is specifically made to record IR wavelengths. There are cameras like this available. I think you might even be able to get someone to alter your Nikon camera to remove the IR filter from the sensor or replace it with a sensor that doesn't have the filter on it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for USB Webcams についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by