-1
$\begingroup$

I am working in the field of digital signal processing. Recently I read a paper that tells about phase only component of a Signal. It is given that the phase only component is calculated as $r_{phase}=\frac{F(n)}{||F(n)||}$, where $F(n)$ is discrete Fourier transform of any signal $n$ and $||F(n)||$ is Fourier magnitude of signal $n$. I know that $F(n)$ can be calculated as F(n)=dft2(n), Can anyone please tell that how to calculate the $||F(n)||$ in MATLAB.

$\endgroup$
  • $\begingroup$ its difficult for me, hopefully NOT for others. $\endgroup$ – Mayank Tiwari Feb 6 '17 at 5:18
  • $\begingroup$ Can I please ask what does dft2 means here? $\endgroup$ – A_A Feb 6 '17 at 9:03
  • $\begingroup$ @A_A, dft2 means discrete Fourier transform for 2D signal. $\endgroup$ – Mayank Tiwari Feb 6 '17 at 12:19
0
$\begingroup$

I suppose you mean fft2 in MATLAB notation (its the same calculation as 2-D DFT, but with less computation time.

Then, you can go for:

F = fft2(I);
r = F ./ abs(F)

to get the phase-only information of the Fourier Transform.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.