Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Digital Image Processing: Affine Motion Estimation, Stabilization, Homomorphic Filtering, Assignments of Digital Signal Processing

Solutions to assignment 6 of the digital image processing course offered by the university of new mexico's department of electrical and computing engineering. The assignment covers topics such as affine motion estimation, image stabilization, and homomorphic filtering. Problem statements, results, and explanations.

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-vjd
koofers-user-vjd 🇺🇸

10 documents

1 / 8

Toggle sidebar

Related documents


Partial preview of the text

Download Digital Image Processing: Affine Motion Estimation, Stabilization, Homomorphic Filtering and more Assignments Digital Signal Processing in PDF only on Docsity! Digital Image Processing ECE 533 Solutions to Assignment 6 Affine Motion Estimation, Image Stabilization, and Homomorphic Filtering Department of Electrical and Computing Engineering, University of New Mexico. Professor Majeed Hayat, hayat@ece.unm.edu May 5, 2008 Problems 1 and 2. 1. Comments on type of motion and noise: The video sequences irseq1.mat and irseq3.mat exhibit a vertical movement only from bottom to top (considered as a positive shift in the y direction), while in the videos irseq2.mat and irseq4.mat the movement is lateral only from right to left (considered as a negative shift in the x direction). Re- garding the noise, irseq1.mat and irseq2.mat are almost noiseless. On the contrary, irseq3.mat and irseq4.mat are noisy video sequences where the noise corrupting the images is a fixed pattern. 2. Correlation-based motion estimation. The results of the total shift estimation pro- cess are shown in Table 1. Cropping values of 0 and 5 pixels were employed in the computations. In Fig. 1, the estimated shift between consecutive frames, when a cropping of 5 pixels was employed, is shown for the sequences irseq1 and irseq2. It 1 can be commented that in absence of noise in the sequences, the estimation process is accurate. However when the fixed-pattern noise is present in the video sequences, the estimation process is strongly degraded. In general, we have to crop the edges of the images before computing the spatial correlation. Unfortunately, such an effect is not seen in the video sequences considered here. Cropping is required because camera movement introduces new information at the edges when a new image is acquired; this new information does not have any correlation with the information available at the reference frame, and it is considered as noise thereby reducing the capability of the method to estimate the motion. Hence, a fairly good motion es- timation requires that, at least, one must know an upper bound on the maximum shift observed in the video sequence. Table 1: Results of the total shift estimation using both spatial correlation and Cain’s method. Correlation no cropping Correlation cropping 5 pix. Cain’s method no cropping Video (α̂, β̂) Elapsed time, s (α̂, β̂) Elapsed time, s (α̂, β̂) Elapsed time, s irseq1 (0,24) 27.11 (0,26) 23.10 (0,28) 0.201 irseq2 (-51,0) 27.08 (-51,0) 23.09 (-56,0) 0.188 irseq3 (0,0) 27.41 (0,0) 23.08 (0,56) 0.170 irseq4 (0,0) 27.07 (0,0) 23.08 (28,0) 0.191 3. In order to get a fast implementation of the correlation-based motion estimation algorithm, an appropriate padding and an FFT implementation should be used. Instead of providing a stabilized video, in this document we show panoramic images obtained using the estimaes of the shift. See Fig. 2. 4. Cain’s algorithm for motion estimation. The results of the total shift estimation process are shown in Table 1, while the amount of shift between consecutive frames is shown in Fig. 1 for the sequences irseq1 and irseq2. First, note that the total amount of shift estimated by Cain’s algorithm is almost the same as the one computed using spatial correlation. Interestingly, the frame-by-frame estimates obtained by the methods are not the same. Note that in the case of Cain’s algorithm no cropping values are given because the cropping process is embedded in the definition of the 2 (a) (b) Figure 2: Panoramic images obtained with the shift estimates: (a) irseq1.mat; and (b) irseq2.mat. Images on the left were obtained using correlation methods and images on the right were obtained using Cain’s method. 5 % Output: % ------- % H: The filter % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Homomorphic filter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Compute the points of the grid m=(-M/2):(M/2-1); M2=M/2; n=(-N/2):(N/2-1); N2=N/2; % Creates the grid [v u]=meshgrid(n,m); % Compute D^2= u^2+v^2 D2=u.^2 + v.^2; D02=D0.^2; % Create the homomorphic filter (the maginitude) H=GammaL+(GammaH-GammaL).*(1-exp(-c*D2./D02)); 6 (a) |F(u,v)| u v |H r (u,v)| u v |H r (u,v)G(u,v)| u v (b) Figure 3: (a) An example of medical image (left) filtered using a homomorphic filter to obtain a high-passed image. (b) The magnitude of the spectrum of the original image (left), the homomorphic filter (center), and the filtered image (right). 7
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved