fft - Inverse Fourier Transforms in Matlab -
this question exact duplicate of:
- fft images , inverse 1 answer
i've been given magnitude , phase fourier transform , i'm asked use these matrices go backwards , reproduce image again. far here understanding:
%here have imaginary part z = mag.*cos(phase) + 1i.*sin(phase); %here real part real = sqrt((mag).^2-(z).^2); image = ifftshift(real); image = ifft(image); imshow(image);
i take magnitude , phase , imaginary part. use magnitude formula i.e. mag = sqrt((real)^2+(imaginary)^2)
try solve real part. reverse shifts , reverse fourier transform in hopes of getting image... get:
i need figuring out, ideas?
your computation of real part , imaginary part not correct. i'd this:
z = mag.*cos(phase) + 1i*mag.*sin(phase); % full matrix of complex amplitudes %here real part real_part = real(z); imag_part = imag(z); % need @ all?! image = ifftshift(real_part); % not sure why doing image = ifft(image); imshow(image);
Comments
Post a Comment