I\'m trying to calculate the ratio between two colors like R and Green, the Input is a camera image using opencv reterived Right now I\'m getting NAN if if there are correct