[Math] Image Reconstruction:Phase vs. Magnitude

computer sciencefourier analysisimage processingMATLABsignal processing

Figure 1.(c) shows the Test image reconstructed from MAGNITUDE spectrum only. We can say that the intensity values of LOW frequency pixels are comparatively more than HIGH frequency pixels.

$$
f(x,y)= ∑_(u=0)^(U-1)∑(v=0)^(V-1)\ |F(u,v)| *exp^(1j*2Π*xu)/M) * e^(1j*2Π*(vy)/N) /
$$

Figure 1.(d) shows the Test image reconstructed from PHASE spectrum only. We can say that intensity values of HIGH frequency (edges,lines) pixels are comparatively more than LOW frequency pixels.

Why this magical contradiction of intensity change (or exchange) is present between Test image reconstructed from MAGNITUDE spectrum only and Test image reconstructed from PHASE spectrum only, which when combined together form the original Test image?

also i want to know that, in phase only reconstruction part, why do i get only edges or lines,why not low frequency components?? because from the 2nd equation i am not getting any idea that only edge like features are emphasized
$$
f(x,y)= ∑_(u=0)^(U-1)∑(v=0)^(V-1)\ exp(j*angle(u,v)) *exp^(1j*2Π*xu)/M) * e^(1j*2Π*(vy)/N) /
$$

enter image description here

enter image description here

Best Answer

One way to think about it is in terms of what you are discarding. The majority of the power in the image's spectrum is in the low frequency bins, right? So when you ignore the magnitude of the frequency samples by setting them all to, say, unity, you are attenuating those samples whose magnitude was higher than unity and amplifying those whose magnitudes were lower than that.

Specifically, if a frequency sample has the value $a e^{j\alpha}$, where $a,\alpha \in \mathbb{R}$ and $j=\sqrt{-1}$, then we ignore its magnitude by dividing it by $a$. This way every frequency sample in the image's spectrum has the same magnitude (i.e., $1$), and when we apply the inverse DFT we get the so-called phase-only image. However, this means that those frequency samples with the most energy (large values for $a$) are also attenuated the most. In other words, the more energy a frequency sample has, the more energy it is that gets ignored. Thus, since for typical optical images (e.g., the one you are looking at), where most the spectral energy is low frequency, the phase-only image is devoid of low frequency content.

As for the magnitude-only image, remember that location in the image domain is tightly coupled with phase in the frequency domain. When you discard the phase of an image's spectrum, one of the things you are discarding is the location of all that energy in the image domain. Thus, when you go back to the image domain from the magnitude-only spectrumn, you essentially have uninterpretable garbage.