You are on page 1of 4

2.

Working with Phase Angles


Download FigP4.2-1(a)(woman).tif and FigP4.2-1(b)(test_pattern).tif (call them f and g). It is
recommended that you look up functions complex and angle before starting the project.

(a) Compute the spectrum and the phase angle of image f and show the phase
image. Then compute the inverse transform using only the phase term (i.e., ifft2 of ejf(u,v) ]
and show the result. Note how the image is void ofcontrast, but clearly shows the woman’s
face and other features.
Matlab solution for (a)

Fft2 requires double


input

Original woman.tif image Phase image of woman.tif


angle
Image reconstructed using only the phase
angle

(b) Compute the inverse using only the spectrum:

Matlab Solution for (b)

Image reconstructed using only the spectrum


angle
(c) Construct the Fourier transform using the spectrum of g and the phase from f, and
compute the inverse:

Matlab solution of C.

Original g image Image obtained by computing the


angle inverse FFT with the real part being the
spectrum of image g(test_pattren.tif) and the
phase angle from image f (woman.tif) angle

You might also like