%% tic %% clear workspace with variable CLC; clear; for image_number=1:1 imageName=strcat(num2str(image_number),'.jpg'); img = imread(imageName); % RGB transform LAB transform = makecform(' srGB2lab '); LAB = applycform(img,transform); % L L = LAB(:,:,1); % CLAHE LAB(:,:,1) = My_adapthisteq(L); % reduce brightness LAB(:,:,1) = LAB(:,:,1)-50; Cform2srgb = makecForm (' lab2srGB '); J = applycform(LAB, cform2srgb); J = 1.35 * J; End toc figure; subplot(121),imshow(img); subplot(122 ); imshow(J);Copy the code
Complete code added QQ1575304183