image processing - Power Spectrum (Conjugate Matrix Multiplication) in Matlab : Getting complex values instead of real ones. What is wrong with my code? -
here's code, simple can't believe doesn't work.
pckint = imread('pckint.jpg'); f = fft2(pckint); fcon = conj(f); s = f*fcon;
now, per assignment directions, , understanding of subject, should real values in power spectrum 's'. however, getting complex values.
i sorry complete noob when comes matlab, have tried searching , understanding commands have used no avail. please help!
you can apply elementwise multiplication (i,j)th element multiplied (i,j)th element:
s = f.*fcon;
Comments
Post a Comment