CLAHE - Redistributing excess pixels among histogram bins
Posted: 2015-03-15T06:45:49-07:00
In order to clip an image's histogram to a maximum value, according to the CLAHE algorithm, the excess pixels (above the clip limit) will be distributed equally among all the histogram bins (While keeping track none of the bins exceed the max limit of course).
Now, when working with (8,8) region size and distributing 13 pixels on 256 bins, the uniform added value (13/256) will be rounded to zero and so the total number of pixels in histogram will be reduced from (8,8) -> 64px to 64 - 13 = 51px.
That doesn't make sense since I'll be neglecting 13 pixels of the region.
Any tips on how to tackle this part of the algorithm?
Reference article of the algorithm (Pages 365-366):
http://www.cs.unc.edu/Research/MIDAG/pu ... ations.pdf
Now, when working with (8,8) region size and distributing 13 pixels on 256 bins, the uniform added value (13/256) will be rounded to zero and so the total number of pixels in histogram will be reduced from (8,8) -> 64px to 64 - 13 = 51px.
That doesn't make sense since I'll be neglecting 13 pixels of the region.
Any tips on how to tackle this part of the algorithm?
Reference article of the algorithm (Pages 365-366):
http://www.cs.unc.edu/Research/MIDAG/pu ... ations.pdf