I have images of plants taken in Red(R) and Near End Infrared(NIR) field,
I calculate the NDVI image per pixel using the below formula,
NDVI = (R-NIR)/(R+NIR) , for all pixels,
I get a range from [-1,1].
Here NDVI image is used to separate soil from plant.
Now How do I convert it to a range from 0 to 255(unsigned int) for image processing.
Any help ?
I am coding in C++ and I want a formula that does the conversion so that I can code it.I use OpenCV for image processing. I am not using any tool to the conversion.