fft - Inverse Fourier Transforms in Matlab -


this question exact duplicate of:

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:

enter image description here

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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -