No BSD License
-
clipHistogram(Hist,NrBins,Cli...
This function performs clipping of the histogram and redistribution of bins.
-
interpolate(subBin,LU,RU,LB,R...
-
makeHistogram(Bin,XSize,YSize...
This function classifies the greylevels present in the array image into
-
makeLUT(Min,Max,NrBins)
To speed up histogram clipping, the input image [Min,Max] is scaled down to
-
mapHistogram(Hist,Min,Max,NrB...
This function calculates the equalized lookup table (mapping) by
-
runCLAHE(Image,XRes,YRes,Min,...
"Contrast Limited Adaptive Histogram Equalization"
-
View all files
from
Contrast Limited Adaptive Histogram Equalization (CLAHE)
by Leslie Smith
Best to read the reference in "Graphics Gems IV", Academic Press, 1994 pages 474-485
|
| makeLUT(Min,Max,NrBins)
|
function [LUT] = makeLUT(Min,Max,NrBins)
% To speed up histogram clipping, the input image [Min,Max] is scaled down to
% [0,uiNrBins-1]. This function calculates the LUT.
Max1 = Max + max(1,Min) - Min;
Min1 = max(1,Min);
BinSize = fix(1 + (Max - Min)/NrBins);
LUT = zeros(fix(Max - Min),1);
for i=Min1:Max1
LUT(i) = fix((i - Min1)/BinSize);
end
|
|
Contact us at files@mathworks.com