How to calculate NDI Index
6 views (last 30 days)
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?