Demo entry 6638403

dark_road_2

   

Submitted by anonymous on Sep 07, 2017 at 16:47
Language: Matlab. Code size: 632 Bytes.

%%Adaptive histogram equalization(自适应直方图均衡)
%dark_road_2
im_input = im2double(imread('dark_road_2.jpg'));  %读取图像,进行归一化处理
figure, imshow(im_input); title('input image');   %显示图像
histogram(im_input,64,'EdgeColor','r','FaceAlpha',0.5,'FaceColor','r');  %显示直方图
im_output1=imsharpen(im_output2);  %图像锐化
im_output2 = adapthisteq(im_output1,'NumTiles',[50 50], 'ClipLimit', 0.008);  %CLAHE处理,分区50*50,对比度限幅值0.008
figure, imshow(im_output2); title('Adaptive histogram equalization result');  %显示图像
histogram(im_output2,64,'EdgeColor','g','FaceAlpha',0.5,'FaceColor','g');  %显示直方图
imwrite(im_output2,'dark_road_2_result.jpg');  %写入图片

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).