MATLAB Answers

How to calculate NDI Index

조회 수: 2(최근 30일)
MaxM 2021년 5월 19일
댓글: Stephan 2021년 5월 20일
I have to calculate the NDI (Normalized difference index) according to the formula: NDI = 128*(((G-R)/(G+R))+1)
This index is applied to all pixels of the image, giving values between 1 and +1, but to display the image, these values must be between 0 and 255.
Can someone please explain and help me how to do this?


Stephan 2021년 5월 19일
편집: Stephan 2021년 5월 19일
NDI_new = uint8(rescale(NDI, 0, 255));
  댓글 수: 2
Stephan 2021년 5월 20일
What are G and R - green and red values? Or what is meant?

댓글을 달려면 로그인하십시오.


Community Treasure Hunt

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

Start Hunting!

Translated by