1 | initial version |
An excellent but simple illumination normalization technique is presented in this paper, and applied to face detection: http://lear.inrialpes.fr/pubs/2007/TT07/Tan-amfg07a.pdf
An existing C++ implementation of the above paper's algorithm: https://github.com/bytefish/opencv/blob/master/misc/tan_triggs.cpp
2 | Added note |
An excellent but simple illumination normalization technique is presented in this paper, and applied to face detection: http://lear.inrialpes.fr/pubs/2007/TT07/Tan-amfg07a.pdf
An existing C++ implementation of the above paper's algorithm: https://github.com/bytefish/opencv/blob/master/misc/tan_triggs.cpp
Note that this is only for illumination normalization, and you may have to experiment a bit with the normalized image to obtain a binary image as per your requirement.