image restoration matlab code
Mostrar comentarios más antiguos

hello i am trying to implement this code to get the result in figure 5.26(b) but still something wrong could you help me in that
thanks,
refernce: digital image processing gonzalez third edition
here is my code
c = im2double(imread('Fig0526(a)(original_DIP).tif'));
figure,imshow(c)
a = 0.1;
b = 0.1;
T=1;
[M, N] = size(c);
h = zeros(M,N);
for u = 1:M
for v = 1:N
h(u,v) = (T/(pi*(u*a + v*b)))*...
sin(pi*(u*a + v*b))*...
exp(-1i*pi*(u*a + v*b));
end
end
cf=(fft2(c));
c1 = cf.*h;
c1a=(ifft2(c1));
figure,imshow(abs(log(c1a)+1), []);
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 2 de Dic. de 2021
0 votos
Why are you doing
exp(-1i*pi*(u*a + v*b));
??? Just use fft2().
1 comentario
aziz alfares
el 2 de Dic. de 2021
vaishnavi padhar
el 13 de Abr. de 2022
0 votos
Can you please provide the block diagram for the same.
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
