100% Guaranteed Results


E9 241: DIGITAL IMAGE PROCESSING Solved
$ 29.99
Category:

Description

5/5 – (1 vote)

TOPIC: THE 2-D DISCRETE FOURIER TRANSFORM (2-D DFT)

(1) Showthat e−jmω1x−jnω2y,x,y ∈ R,m,n ∈ Z,ω1,ω2 ∈ [−π,+π] constitutes an orthogonal set over the region: x,y. no
(2) Show that e−j2π knN ,k,n = 0,1,2,…,N − 1,N ∈ N constitutes an orthogonal set over n ∈ [0,N−1]. Consider an N×N matrix F whose (k,n)-element is e−j2π knN ,k,n = 0,1,2,…,N − 1. Determine the adjoint of F.
(3) Consider two N × N images f[k,`] and g[k,`],k,` = 0,1,2,…,N − 1 whose 2-D DFTs of size N × N are denoted by bf[k0,`0] and gb[k0,`0],k0,`0 = 0,1,2,…,N − 1, respectively. Show that
XN−1XN−1f[k,`]g [ 1 XN−1XN−1bf[k0,`0]gb∗[k0,`0].
∗ k,`] =
N2 0 0
k=0 `=0 k =0 ` =0
The left-hand side is the inner-product between f and g. Similarly, the double summation on the right-hand side is the inner-product between bf and g.b This property shows that the 2-D DFT preserves inner-products between sequences up to a scale factor. Use this result to show that the 2-D DFT is an energypreserving transformation (the Parseval property).
(4) Consider the N-point sequence {f[n],n = 0,1,2,…,N − 1} and its N-point
DFT {bf[k],k = 0,1,2,…,N − 1}. Express the N-point DFT of {bf[k],k = 0,1,2,…,N − 1} in terms of f[n]. Considering N-length vector representations of the sequences f[n] and bf[k], express the result using matrix/vector notation.
1
Remember: DFTandIDFTarethetransforms. FFTandIFFTarefastalgorithms to implement the DFT and IDFT, respectively, and not transforms themselves.
(1) This exercise would help you understand how to implement the 2-D DFT efficiently using the 1-D fast Fourier transform (FFT) algorithm. Effectively, you would develop a 2-D FFT.
Write a Matlab/Python script that accepts an M×M image and a number N as inputs and implements a 2-D DFT of size N ×N. Both M and N are powers of 2. There is no order relation between M and N, i.e., M could be greater than N or vice versa. Your program must allow for M and N to be different. You are allowed to use the built-in 1-D fast Fourier transform (FFT) implementation. The output should be the N × N 2-D DFT. Report results for the two cases: (i) N = 2M; and (ii) N = M/2. Use the Zone plate image to generate results. Display the Zone plate image (title: ZONE PLATE IMAGE), the magnitude of the 2-D DFT (title: 2-D DFT MAGNITUDE), and the phase of the 2-D DFT (title: 2-D DFT PHASE).
Titbit: A zone plate is a device that is used to focus electromagnetic waves. However, unlike lenses or curved mirrors, which use refraction or reflection, respectively, a zone plate uses diffraction for focusing an incident wave.
(2) This exercise tests your ability to exploit the properties of the DFT to implement the 2-D inverse FFT.
Use the 2-D FFT module developed in (1) as a black-box to implement the 2-D inverse FFT (IFFT). You could add processing blocks before or after the 2-D FFTblock, butyoushouldnotchangethecontentsofthe2-DFFTblock. Your program should accept the 2-D DFT of an image as the input and output the image in the spatial domain. The input size is N × N and the output size is M × M. There is no order relation between M and N, i.e., M could be larger than N or vice versa. Your program should allow for M and N to be different. Ideally, if you cascade the 2-D FFT and 2-D IFFT blocks, both of size M ×M, you should get back the image that went into the 2-D FFT block. Use the 2-D DFT of the Luna image to report your results. Display the Luna image (title: LUNA IMAGE), the output of the 2-D IFFT block, which is the reconstructed
Luna image (title: RECONSTRUCTED LUNA IMAGE), and the difference
E9 241: DIGITAL IMAGE PROCESSING 3
between the original Luna image and the reconstructed one (title: ERROR IMAGE). What is the source of the error?
(3) This exercise would help you understand the effect of the DFT size in performing the forward and inverse transformations.
Using the modules developed in Exercises 1 and 2, write a Matlab/Python script to do the following in order: M × M image Ï N × N DFT Ï P × P IDFT. M and N are powers of 2. Use the Shepp-Logan phantom to report your results. Report the results for the following cases: (i) P = N = M, (ii) P = N = 2M, (iii) 2P = N = M, (iv) P = N = M/2. These four cases must appear as the options for a radio button. Display the input image (title: SHEPP-LOGAN PHANTOM) and the output image (title: RECONSTRUCTEDSHEPP-LOGANIMAGE).Basedontheselectedoption, thecorresponding results must be computed dynamically and displayed. Explain why the output appears the way it does in each case.
Titbit: Named after its inventors, the Shepp-Logan phantom (1974) has now become a standard test image that serves as a model of a cross-section of the human head in the development and testing of image reconstruction algorithms.
(4) This magnitude-phase swapping experiment would help you understand the relative importance of the magnitude vs. phase spectra of images.
Consider two M × M images f1 and f2. Compute their M × M point DFTs. Next, take the DFT magnitude of f1 and combine it with the DFT phase of f2 and compute the M × M IDFT − call the result f3. Similarly, consider the other combination (DFT phase of f1 and DFT magnitude of f2) and compute the M × M IDFT − call the result f4. Display the results: (i) f1 (title: IMAGE 1), (ii) f2 (title: IMAGE 2), (iii) f3 (title: OUTPUT – SWAP 1), and (iv) f4 (title: OUTPUT – SWAP 2). Use the Rajinikanth and Amitabh images as input. Titbit: Amitabh and Rajinikanth need no introduction, but this is a maiden attempt at using their images in the DIP course assignments.

Reviews

There are no reviews yet.

Be the first to review “E9 241: DIGITAL IMAGE PROCESSING Solved”

Your email address will not be published. Required fields are marked *

Related products