IP 2021 Final
IP 2021 Final
1. (12%) Consider the following point spreads functions, h1(x, y) to h3(x, y) from left to
right, of some highpass filters. (a) Explain the source of spikes in the figures below.
(b) Find the average value of a highpass processed image, gi(x, y) = f(x, y) * hi(x, y).
(c) Describe the appearance of |gi(x, y)|.
3. (8%) Show that the following Alpha-trimmed mean filter can be converted into (a) a
median filter and (b) an arithmetic mean filter by changing the value of d. Briefly
explain why it may eliminate both (i) salt-and-pepper noise and (ii) uniform noise
distribution at the same time while arithmetic mean filter cannot.
1
fˆ ( x, y ) g r ( s, t )
mn d ( s ,t )S xy
4. (8%) Give a numerical example to show that using improper Q in the following filter
may actually enhance the pepper ( g(x, y)=1) noise in an image.
g ( s, t )
( s , t )S x ,
Q 1
f ( x, y )
y
g ( s, t )
( s , t )S x ,
Q
7. (10%) Compare the average code length of (i) Huffman code and (ii) binary code.
(a) Show that the two lengths may be the same for a four-symbol source.
(b) Show that (i) will always be shorter than (ii) for a six-symbol source.
8. (10%) Use LZW algorithm to encode the following 1×12, 8-bit image:
126 126 126 126 39 39 39 39 126 126 126 126
An example of the pass mode (and definitions of a0, a1, b0, b1)
10. (12%) Consider linear predictor, f*(x, y) = α1f(x, y1) + α2f(x1, y1) + α3f(x1, y).
(a) Use E{f(x, y) f(xi, yj)} = σ2ρviρhj to establish the formulation (no need to solve)
for obtaining the optimal predictor which minimizes E{[f(x, y) f*(x, y)]2}.
(b) Explain how different types of data redundancy which may be effectively
explored with the above predictor.