Enhancing contract of an image using matlab
%Enhancing contract of an image using matlab
%% Reading a low contract image
image = imread('chest_xray.jpg');
subplot(2,2,1),imshow(image);
title('original low contracting image');
%% Histogram of the low contract image
subplot(2,2,2),imhist(image);
title('histogram of original image');
%% use histogram equalization function on low contract image
edited = histeq(image);
subplot(2,2,3),imshow(edited);
title('contract enhanced image');
%% display histogram of contract-enhanced image
subplot(2,2,4),imhist(edited);
title('histogram of contract-enhanced image');
0 Comments