I was trying to normalize a set of numbers from -100 to 0 to a range of 10-100 and was having problems only to notice that even with no variables at all, this does not evalu
In python cv2 not updated the division calculation. so, you must include from __future__ import division in first line of the program.
cv2
from __future__ import division