joshdoe / opencv-clahe

CLAHE (Contrast Limited Adaptive Histogram Equalization) implementation for OpenCV
33 stars 17 forks source link

Algorithm fails on 64-bit platform #1

Open bnascimento opened 11 years ago

bnascimento commented 11 years ago

debugger point me to: while (pImage < pImagePointer) pulHistogram[pLookupTable[*pImage++]]++;

bnascimento commented 11 years ago

A fix for that can be found here: http://theperfectmixture.wordpress.com/2012/03/28/clahe-in-opencv-removing-the-seg-fault/

joshdoe commented 11 years ago

I should try and incorporate that, but I'm not working on this right now, though I'll happily accept a pull request that fixes it.