How to synthetic face images and to reconstruct them only from low-frequency Fourier features ?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everybody I need to reconstruct face images by using only low-frequency Fourier coefficients. So how to keep only the low frequency part . this code keep fourier coeffecients from all bands:
imageA = imread('greekchurch','jpg');
fftA = fft2(double(imageA));
figure, imshow(abs(fftshift(fftA)),[24 100000]), colormap gray
title('Image A FFT2 Magnitude')
figure, imshow(angle(fftshift(fftA)),[-pi pi]), colormap gray
title('Image A FFT2 Phase')
fftC = abs(fftA).*exp(i*angle(fftB));
imageC = ifft2(fftC);
How to preserve only low-frequency Fourier coefficients . Thanks for your attention
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 9 Feb. 2013
Research "eigenfaces": http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=eigenfaces
6 Kommentare
Image Analyst
am 2 Mär. 2013
If you haven't used fftshift() then the low frequencies will be in the 4 corners, so just zero out everything except for 8 by 8 blocks in the corners.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!