Sem 7‎ > ‎Digital Image Processing‎ > ‎

WAP to display log transformation of an image.

posted Oct 30, 2013, 7:56 AM by Neil Mathew   [ updated Oct 30, 2013, 8:02 AM ]

Preview:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
a=imread('C:\Users\Desktop\lena.png');
subplot(2,2,1);
imshow(a);
title('original image');
b=im2double(a);
subplot(2,2,2);
imshow(b);
title('double of an image');
c=log(1+b);
subplot(2,2,3);
imshow(c);
title('log of an image'); 
d=log2(1+b);
subplot(2,2,4);
imshow(d);
title('log to the base 2');
Comments