%%
%programe to implement gamma transformationusing IPT function imadjust
%if g is input image and h is output image than the gamma correction will
%be as h=imadjust(g,[low_in high_in],[low_out high_out]gamma)
clc;
i=imread( C:\Documents and...
More
%%
%programe to implement gamma transformationusing IPT function imadjust
%if g is input image and h is output image than the gamma correction will
%be as h=imadjust(g,[low_in high_in],[low_out high_out]gamma)
clc;
i=imread( C:\Documents and Settings\SW2\Desktop\B.
jpg );
g=rgb2gray(i);
imshow(g);
f=mat2gray(g);
h=imadjust(f,[0.
5 0.
7], [0.
7 0.
5], 1);
figure(2);
imshow(h);
%%
%Programe to implement log transformation this transform is quiet similat
%to gamma correction evaluated using g=c*(log(1+double(f)));
clc;
i1=imread( C:\Documents and Settings\SW2\Desktop\B.
jpg );
g1=rgb2gray(i1);
imshow(g1);
f1=mat2gray(g1);
l=4*(log(1+(f1)));
figure(2);
imshow(l);
%%
% contrast streaching using transformation g=1.
/(1+(m.
/double(f)).
^E)
clc;
i2=imread( C:\Documents and Settings\SW2\Desktop\B.
jpg );
g2=rgb2gray(i2);
imshow(g2);
m=input( the mean value of gray level = )
E=input( power of function = );
f2=1.
/(1+(m.
/double(g2)).
^E);
figure(2);
imshow(f2);
%%
%This programe demonstrate g
Less