Image Resizing and McClellan Transformations in Digital Image Processing, Assignments of Digital Signal Processing

Problem set #2 for the digital image processing course (ece 6258) at the georgia institute of technology. It includes problems on image resizing using nearest-neighbor interpolation and bilinear interpolation, and mcclellan transformations for designing non-separable lowpass filters. The problem set also involves implementing matlab code for image magnification and designing a 3-d zero-phase fir filter using a mcclellan transformation.

Typology: Assignments

Pre 2010

Uploaded on 08/05/2009

koofers-user-c7u
koofers-user-c7u 🇺🇸

5

(1)

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
GEORGIA INSTITUTE OF TECHNOLOGY
School of Electrical and Computer Engineering
ECE 6258
Digital Image Processing
Fall 2003
Problem Set #2
Issued: Wednesday, September 3, 2003
Due (live): Friday, September 12, 2003
Due (video): Friday, September 26, 2003
Problem 2.1 (Image Resizing): When magnifying an image, the goal is
to produce a digital image ywith support βL×βM pixels(with β>1)
from an image xwith support L×M. Since the pixel locations in the
larger image, y, do not coincide with pixel locations in x, interpolations
between the pixels of xis needed. Two simple techniques that can be
used for this purpose are the following:
Nearest-Neighbor Interpolation: In this method the value of the
new pixel Sin image yis assigned as the value of the spatially closest
pixel of x(when the inverse mapping is applied). Hence, Stakes the
value of one of S1,S2,S3,orS4, whichever is closest.
Bilinear Interpolation: The new pixel Sin image yis computed
from the four closest (inverse mapped) pixels S1,S2,S3,andS4in
image x.
S=(a)(b)S1+(1a)(b)S2+(a)(1 b)S3+(1a)(1 b)S4
where
a=(S2S)h
(S2S1)h
b=(S3S)v
(S3S1)v
(a) For both techniques, answer the following: Is it linear? Is it shift-
invariant?
(b) Show that both schemes are separable.
(c) We want to magnify a 4 ×4 image to size 8 ×8. Because of
separability, we can write this as: y=AxB, where xis a 4 ×4
matrix, yis an 8 ×8matrixandAand Bare transposes of each
other. Write Aand Bfor both interpolation schemes.
(d) Implement your own Matlab code for both schemes to magnify
an image by an arbitrary factor β>1. Magnify the cameraman
image by a factor of 1.25. Turn in the magnified images.
(e) Compare the subjective quality of the magnified images and de-
scribe your observations.
pf3

Partial preview of the text

Download Image Resizing and McClellan Transformations in Digital Image Processing and more Assignments Digital Signal Processing in PDF only on Docsity!

GEORGIA INSTITUTE OF TECHNOLOGY

School of Electrical and Computer Engineering

ECE 6258 Digital Image Processing Fall 2003

Problem Set #

Issued: Wednesday, September 3, 2003 Due (live): Friday, September 12, 2003 Due (video): Friday, September 26, 2003

Problem 2.1 (Image Resizing): When magnifying an image, the goal is to produce a digital image y with support βL×βM pixels(with β > 1) from an image x with support L × M. Since the pixel locations in the larger image, y, do not coincide with pixel locations in x, interpolations between the pixels of x is needed. Two simple techniques that can be used for this purpose are the following: Nearest-Neighbor Interpolation: In this method the value of the new pixel S in image y is assigned as the value of the spatially closest pixel of x (when the inverse mapping is applied). Hence, S takes the value of one of S 1 , S 2 , S 3 , or S 4 , whichever is closest. Bilinear Interpolation: The new pixel S in image y is computed from the four closest (inverse mapped) pixels S 1 , S 2 , S 3 , and S 4 in image x.

S = (a)(b)S 1 + (1 − a)(b)S 2 + (a)(1 − b)S 3 + (1 − a)(1 − b)S 4

where

a = (S 2 −^ S)h (S 2 − S 1 )h

b =

(S 3 − S)v (S 3 − S 1 )v

(a) For both techniques, answer the following: Is it linear? Is it shift- invariant? (b) Show that both schemes are separable. (c) We want to magnify a 4 × 4 image to size 8 × 8. Because of separability, we can write this as: y = AxB, where x is a 4 × 4 matrix, y is an 8 × 8 matrix and A and B are transposes of each other. Write A and B for both interpolation schemes. (d) Implement your own Matlab code for both schemes to magnify an image by an arbitrary factor β > 1. Magnify the cameraman image by a factor of 1.25. Turn in the magnified images. (e) Compare the subjective quality of the magnified images and de- scribe your observations.

Problem 1.2 (McClellan Transformations): Although procedures have been developed for the design of transformation functions, ad hoc methods often work well since the transformation typically involves very few free parameters. Ad hoc methods may take the form of spec- ifying the mapping function for a few key frequencies. As an example, consider a first-order transformation of the form

F (ω 1 , ω 2 ) = A + B cos ω 1 + C cos ω 2 + D cos ω 1 cos ω 2

to design a non-separable lowpass filter with a rhomboidal passband that approximates the ideal response

H(ω 1 , ω 2 ) =

{ 1 , |ω 1 | + |ω 2 | < π 0 , otherwise

(a) Find a reasonable set of values for A, B, C, and D. Justify your answer. (You might consider such factors as: if using a lowpass prototype filter, what value of ω should map to the center of the 2-D passband? Where should ω = π map? What symmetries should the transformation function have? Can the transforma- tion coefficients be constrained to have a constant value of the transformation function on the cutoff boundary of the ideal fil- ter? Each question like these defines one or more linear equa- tions that the transformation parameters must satisfy. If you get enough equations, F is determined.) (b) Sketch the response of a 1-D prototype filter to be used with this transformation to design an approximation to this filter. (c) The goal of this part of the problem is to design a 3-D zero-phase FIR filter using a McClellan transformation. The idealized pass- band of the filter should have the shape of an octahedron as shown in Figure 1. The cross-sectional views on selected planes of the

Figure 1: Ideal octahedral frequency response for Problem 2.2.

frequency response, shown in Figure 2, define the orientation and cutoff frequencies of the passband. We propose to perform the

ω 1

ω 2

π

π

ω 3 = 0

ω 1

ω 3

π

π

ω 2 = 0

ω 2

ω 3

π

π

ω 1 = 0

Figure 2: Cross-sections of octahedral frequency response.