Problem Set 2 - Assignment 4 - Image Processing | CMSC 426, Assignments of Computer Science

Material Type: Assignment; Professor: Fermuller; Class: Image Processing; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;

Typology: Assignments

Pre 2010

Uploaded on 02/13/2009

koofers-user-ure-2
koofers-user-ure-2 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CMSC 426
Problem set 2
Due: Tuesday, November 11, 2003
Programming
(1) A geometric transform is a vector function Tthat maps the pixel (x, y)
to a new position (x0, y0). Tis defined by its two components
x0=Tx(x, y)y0=Ty(x, y)
Geometric transformations are implemented in two steps. First for a
point (x0, y0) we find from the inverse transform T1the corresponding
point (x, y). Second, since xand yare not integers, we need to estimate
the brightness value at (x,y ) by interpolation (from neighboring integer
points).
Develop programs for the following geometric transforms:
(a) Rotation
(b) Change of scale
(c) Skewing. Skewing by an angle φis defined as
x0=x+ytan(φ)y0=y
(d) Affine transform calculated from three pairs of corresponding points.
An affine transform is defined as
x0=a0+a1x+a2y y0=b0+b1x+b2y
For each of the above transforms, implement the following two bright-
ness interpolation approaches:
Nearest-neighbor interpolation
Bi-linear interpolation (from four neighboring points), which can
be implemented as convolution, as discussed in class (slides on
Resampling).
1
pf3

Partial preview of the text

Download Problem Set 2 - Assignment 4 - Image Processing | CMSC 426 and more Assignments Computer Science in PDF only on Docsity!

CMSC 426

Problem set 2

Due: Tuesday, November 11, 2003 Programming

(1) A geometric transform is a vector function T that maps the pixel (x, y) to a new position (x′, y′). T is defined by its two components

x′^ = Tx(x, y) y′^ = Ty(x, y)

Geometric transformations are implemented in two steps. First for a point (x′, y′) we find from the inverse transform T −^1 the corresponding point (x, y). Second, since x and y are not integers, we need to estimate the brightness value at (x, y) by interpolation (from neighboring integer points). Develop programs for the following geometric transforms:

(a) Rotation (b) Change of scale (c) Skewing. Skewing by an angle φ is defined as

x′^ = x + ytan(φ) y′^ = y

(d) Affine transform calculated from three pairs of corresponding points. An affine transform is defined as

x′^ = a 0 + a 1 x + a 2 y y′^ = b 0 + b 1 x + b 2 y

For each of the above transforms, implement the following two bright- ness interpolation approaches:

  • Nearest-neighbor interpolation
  • Bi-linear interpolation (from four neighboring points), which can be implemented as convolution, as discussed in class (slides on Resampling).

Run your algorithms on a picture of your choice. Print the code. Print your results for (a) Scaling by a factor 3 (b) An affine transform with points A = (1, 0), B = (− 1 , 0), C = (0,

  1. mapping to points A′^ = (1. 9 , 0), B′^ = (− 0. 5 , 0), C′^ = (0, 1) using bi-linear interpolation.

(2) Implement the Lukas-Kanade optical flow algorithm using the imple- mentation described in Barron et al. 1994. First compute the normal flow using the following steps:

(a) The image sequence is filtered with a spatio-temporal Gaussian filter, with standard deviation σ = 1.5 and kernel size 11× 11 ×11. (b) The spatial and temporal derivatives are computed using the 5- point symmetric kernel 121 (− 1 , 8 , 0 , − 8 , 1). (c) Estimation of the normal flow at points with high spatial gradient (experiment with the threshold)

Estimate the optical flow from the normal flow values with weighted least squares minimization using the 5 × 5 separable and isotropic win- dow function W 2. Its effective 1-d weights are (0. 0625 , 0. 25 , 0. 375 , 0. 25 , 0 .0625). Print your code. Plot one estimated normal flow and optical flow field for the office sequence. There are twenty frames, so you can compute the flow for 6 frames in the middle of the sequence.

Problems

  1. What is histogram equalization? Explain the rationale behind this technique.
  2. Explain why Gaussian Filtering is often the preferred averaging method.
  3. Explain why smoothing typically blurs image edges.
  4. Aliasing takes high spatial frequencies to low spatial frequencies. Ex- plain why the following effects occur: - In old cowboy films that show wagons moving, the wheel often seems to be stationary or moving in the opposite direction. - White shirts and thin dark pin-stripes often generate a shimmering array of colors on television.