Digital Image Processing Lab - 1
Digital Image Processing Lab - 1
clear all
clc
close all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc, clear all
close all
clc
close all
close all
%%%%Histogram
close all, clc, clear all
% Step:1.1 Read the Input image
a=imread('pout.tif','tif');
a1=imadjust(a,[0.3, 0.6],[0.0,1.0]); %%Contrast streched operation
figure,
subplot(1,2,1);imshow(a),title('Input image before contrast stretching');
subplot(1,2,2);imshow(a1),title('Input image after contrast stretching');
%%I2= imhist(a1);
S= histeq(a);
figure,
subplot(2,2,1);imshow(a),title('Histogram of Input image');
subplot(2,2,2);imhist(a)
subplot(2,2,3); imshow(S), title('Histogram Equalization');
subplot(2,2,4);imhist(S)
Results