[Image enhancement] Histogram enhancement of CLAHE algorithm based on matlab local contrast enhancement [Including Matlab source code 076]

One, the source code

%% 
tic
%% 清空工作区与变量
clc;
clear;
for image_number=1:1
    imageName=strcat(num2str(image_number),'.jpg');
    img = imread(imageName);
  
   %% 在LAB空间进行去雾
    % RGB转LAB
    transform = makecform('srgb2lab');  
    LAB = applycform(img,transform);  
    % 提取亮度分量 L
    L = LAB(:,:,1); 
    % 对L进行CLAHE
    LAB(:,:,1) = My_adapthisteq(L);
    % 减小一定的亮度
    LAB(:,:,1) = LAB(:,:,1)-50;
    %% 转回到RGB空间
    cform2srgb = makecform('lab2srgb');  
    J = applycform(LAB, cform2srgb);
      J = 1.35.*J;
    %% 输出图像
      
end
    toc
    figure;
    subplot(121),imshow(img);
     subplot(122 );imshow(J);

Two, running results

Insert picture description here

3. Remarks

Complete code or writing add QQ2449341593 past review
>>>>>>
[Matlab 024] [Image processing 1] Image compression of Matlab image processing tutorial series
[Matlab 025] [Image processing 2] Matlab image processing tutorial series Image segmentation (1)
[Matlab 026 issue] [Image processing 3] Image segmentation of Matlab image processing tutorial series (2)
[Matlab 029] [Image processing 4] Matlab fingerprint recognition
[Matlab 030] [Image processing 5] Bank Card number recognition matlab source code
[Matlab 074] [Image processing 6] [Image clustering] Based on FCM and improved FCM brain CT image clustering processing
[Matlab 075] [Image processing 7] [Image evaluation] Based on CCF algorithm Image quality evaluation
[Matlab 076] [Image processing 8] [Image enhancement] CLAHE algorithm based on local contrast enhancement-histogram enhancement
[Matlab 078] [Image processing 10] [Image evaluation] No reference quality based on svm image Evaluation
[Matlab Issue 079] [Image Processing 11] [Image Edge Detection] Matlab source code for ellipse edge detection based on least squares

Guess you like

Origin blog.csdn.net/TIQCmatlab/article/details/112986517