I\'m trying to implement in OpenCV a local normalization algorithm to reduce the difference of illumination in an image. I have found a MATLAB function, and I have implement
you need to normalize the image between 0 and 255 before converting it to CV_8UC1