opencv/modules/imgproc
Andrey Kamaev 0bbba847a4 Fix equalization formula in equalizeHist function & rewrite in C++
Old implementation did

    lut[i] = 255 * (count(Y <= i)) / (width * height)

which actually shifts uniform histograms.
From now histogram is equalized as

    C = count(Y == min(Y))
    lut[i] = 255 * (count(Y <= i) - C) / (width * height - C)
2012-12-15 15:29:15 +04:00
..
doc Eliminate discrepancies between signatures in documentation and OpenCV headers 2012-10-17 21:24:55 +04:00
include/opencv2/imgproc Normalize line endings and whitespace 2012-10-17 15:32:23 +04:00
perf Merge branch 2.4 into perf_verify_sanity 2012-12-12 20:14:25 +04:00
src Fix equalization formula in equalizeHist function & rewrite in C++ 2012-12-15 15:29:15 +04:00
test Fix OS X build warnings 2012-11-09 11:29:52 +04:00
CMakeLists.txt Global CMake reorganization: 2012-02-03 11:26:49 +00:00