Docsity

Homework and Algorithm Assignment: Filter | CSCI 1230, Assignments of Computer Graphics

Toggle sidebar
bg1
Homework & Algorithm Assignment: Filter
Due: Thursday, October 16 5:00 pm
Be sure to run the signal processing applets before diving into this assignment:
http://www.cs.brown.edu/exploratories/freeSoftware/catalogs/signal_processing.html
1 Theory (Homework)
Pixels
Multiple choice: is a pixel a little square or circle?
a) No
b) No
Duality of Domains
1. If the dual of the box function (a) in the frequency domain is the sinc in the spatial domain (b),
a) b)
-5 0 5
-1.00
-0.50
0.00
0.50
1.00
sketch the dual of this box function (c) in the provided blank space (d) (doesn’t need to be accurate!).
c) d)
2. What do we usually use to approximate this sinc function, and why do we make this approximation
when translating these theoretical concepts into code?
1
pf3

Partial preview of the text

Download Homework and Algorithm Assignment: Filter | CSCI 1230 and more Assignments Computer Graphics in PDF only on Docsity!

Homework & Algorithm Assignment: Filter

Due: Thursday, October 16 5:00 pm

Be sure to run the signal processing applets before diving into this assignment:

http://www.cs.brown.edu/exploratories/freeSoftware/catalogs/signal_processing.html

1 Theory (Homework)

Pixels

Multiple choice: is a pixel a little square or circle?

a) No

b) No

Duality of Domains

  1. If the dual of the box function (a) in the frequency domain is the sinc in the spatial domain (b),

a) b)

-1.00 - 5 0 5

-0.

sketch the dual of this box function (c) in the provided blank space (d) (doesn’t need to be accurate!).

c) d)

  1. What do we usually use to approximate this sinc function, and why do we make this approximation when translating these theoretical concepts into code?

Convolution

Consider the following function and filter.

1 -3.5 (^) -3 -2.5 (^) -2 -1.5 (^) -1-0.5 0.5 1 1.5 2 2.5 3 3.

1 -3.5 (^) -3 -2.5 (^) -2 -1.5 (^) -1-0.5 0.5 1 1.5 2 2.5 3 3.

Function Filter

  1. What is the value of the function convolved with the filter at

(a) x = 3? (b) x = 2.5? (c) x = 2.25? (d) x = 2? (e) x = 1.5?

Draw the function convolved with the filter in the blank graph provided below:

1

-3.5 (^) -3 -2.5 (^) -2 -1.5 (^) -1-0.5 0.5 1 1.5 2 2.5 3 3.

  1. Let F (x) and G(x) be the frequency domain duals of spatial domain functions f (x) and g(x), respec- tively. Fill in the right hand side of the following equation with an equivalent operation involving F (x) and G(x). Note that ∗ is the convolution operator.

f (x) ∗ g(x) =