Unformatted text preview:

Digital Video Processing (EE392J)Department of Electrical EngineeringStanford UniversityProblem Set No. 3Issued: February 5, 2007Due: February 12, 2007 (in class)Reading: Read 5.5.1, skim 5.5.2-5.5.3, read 5.5.4. Read chapter 13 of Tekalp (handed out in class).Problem 1. Problem 6.6. (Note that the final answer is given in the back of the book - but you have to derive it here.)Problem 2. Problem 3.9Problem 3. Problem 3.10 (continuation of above problem)Problem 4. Assume you are given a continuous image with spatial bandwidths of Bxand Byalong the horizontaland vertical dimensions, respectively. The image moves with a global motion and constant velocity vyin the verticaldirection. The resulting video signal is then sampled with interlaced sampling (as shown in Figure 3.6 in the text)where ∆x =12Bx, ∆y =1By, and ∆t.(a) Determine the spectrum of the sampled video signal and draw a figure to illustrate the spectrum in the Fy− Ftplane. How does the spectrum vary with vy?(b) Determine if any critical velocities exist for this sampling lattice and signal bandwidth. If critical velocities exist,describe them in both the spatio-temporal (pixel) domain and in the frequency domain.Problem 5. Affine Motion ModelsAs discussed in class, parametric motion models describe the relationship between image A pixels (x, y) and image Bpixels (X, Y ). The parametric motion model for affine motion is given by:X = ax + by + c (1)Y = dx + ey + f (2)These equations map pixels in location (x, y) to location (X, Y ), i.e. (x, y) → (X, Y ).A. Written assignment1. Derive the equations that map pixels (X, Y ) → (x, y). Is this also an affine mapping?2. Given 3 pairs of point correspondences (x0, y0) ←→ (X0, Y0), (x1, y1) ←→ (X1, Y1), and (x2, y2) ←→(X2, Y2), how do we calculate the affine parameters a, b, c, d, e, f ?3. The second equation on slide 31 of the lecture notes from Lecture 4 is incorrect. Replace the incorrectequations in your notes with the correct equation you calculated in A.2.B. Matlab scriptWrite a matlab script that performs the following tasks:i. Load two images and get point correspondence pairs between the two images by clicking on three commonimage features in each picture. Print the point correspondence pairs. (Hint: The ginput() command returnsthe coordinates of the point that you click the mouse on in the current Figure. Use the ginput(3) commandto get the coordinates of three feature points in each loaded image. You can also use subplot to plot bothimages within the same Figure window, and then by using ginput(6) you can identify the three pairs offeature points by first clicking on the location of the feature point in the first image and then on its locationin the second image, etc.)ii. Calculate the affine parameters between A → B using the point correspondence pairs in (i). Calculate theaffine parameters between B → A using the point correspondence pairs in (i). Print both sets of affineparameters.iii. Create Bpred, the MC-prediction of image B, from image A and the affine motion model. (Which set ofaffine parameters in (ii) should you use for this MC-prediction?) Calculate Berr, the error signal betweenBpred and B. Calculate Bpsnr, the PSNR between Bpred and B. Print and turn in your images Bpred andBerr, and the number Bpsnr. (Note: If the mapped pixel is located outside the image boundary, simply usea reasonable pixel value from inside the image boundary. However, do not use these outside pixels in yourPSNR calculation. If the mapped pixel is located in a subpixel location, use the nearest pixel or perform asimple bilinear spatial interpolation of the surrounding pixels.)C. Matlab processingFive 640 × 480 gray-scale images (A.tif, B.tif, C.tif, and D.tif) are located at the Problem Set webpage off ofthe course webpage www.stanford.edu/class/ee392j.1. Use your script to process images A.tif and B.tif.2. Use your script to process images C.tif and D.tif.3. Try generating your point correspondence pairs with different features in the images (e.g. features in thebookshelves, features in the ceiling, or features in both). Briefly comment on the quality of the predictionswhen using different image features, e.g. How does the quality depend on the feature points- what effectsdo the intensity and location of the pixels have on the quality? Where does the motion model work or fail?D. Bonus: Pseudo-Generalized Block Motion Compensation Have your script divide the predicted image into 4,9, or 16 blocks and for each block choose 3 point correspondence pairs and calculate the affine motion modelparameters. Reconstruct a prediction of the frame by using the appropriate affine mapping for each block.Briefly comment on the performance of this scheme. (Note: It may be good to renormalize the offset of x, y, X,Y for each


View Full Document

Stanford EE 392J - Problem Set No. 3

Download Problem Set No. 3
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Problem Set No. 3 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Problem Set No. 3 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?