I am trying to calculate ndvi from two images (one RGB and one from an NOIR camera), with thee aim of taking the red out from the RGB and the Near infrared from the NOIR. Firstly how would you identify the NIR in openCV as it only has 3 colour channels (RGB) and second how would you merge these 2 images using the NDVI formula pixel by pixel?