Demo entry 6638314

dark_road_1

   

Submitted by anonymous on Sep 07, 2017 at 11:24
Language: Matlab. Code size: 667 Bytes.

%%Adaptive histogram equalization£¨×ÔÊÊÓ¦Ö±·½Í¼¾ùºâ£©
im_input = im2double(imread('dark_road_1.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,'result2.jpg');  %дÈëͼƬ

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).