Docsity

Homework 3: Image Processing with Gaussian Filter and Halftoning, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE468: HOMEWORK 3
due 01/29
1) (70pts) Let f(x, y)be an image with pixel values in [0,255], and g(x, y)be the output image obtained
after applying the 3ร—3Gaussian filter w, with ฯƒ= 1, on f(x, y ),g(x, y) = w(x, y)โ‹† f (x, y). Also
let t(x, y)be an array of random thresholds which are identically and independently distributed
(i.i.d.), with the uniform distribution on the discrete set {0,1,...,255}. The two binary halftone
images are then computed as
bf(x, y) = ๎˜š255 ,if f(x, y )> t(x, y),
0,otherwise bg(x, y) = ๎˜š255 ,if g(x, y )> t(x, y),
0,otherwise (1)
1.1) (10pts) Compute the expected value of bf(x, y)as a function of f(x, y)
1.2) (10pts) Compute the variance of bf(x, y)as a function of f(x, y )
1.3) (20pts) Compute the expected value of bg(x, y)as a function of f(x, y)
1.4) (20pts) Compute the variance of bg(x, y)as a function of f(x, y )
1.5) (10pts) Let f(x,y) be the image provided for this problem on the course website. Include in
your report:
1.5.1) Figure 1 showing g(x, y)and the caption
1.5.2) Figure 2 showing two random samples of bf(x, y)and the caption
1.5.3) Figure 3 showing two random samples of bg(x, y)and the caption
(Hint: Use MATLAB command โ€˜randโ€™ for sampling thresholds t(x, y)to generate bf(x, y ).)
pf2

Partial preview of the text

Download Homework 3: Image Processing with Gaussian Filter and Halftoning and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE468: HOMEWORK 3

due 01/

  1. (70pts) Let f (x, y) be an image with pixel values in [0, 255], and g(x, y) be the output image obtained after applying the 3 ร— 3 Gaussian filter w, with ฯƒ = 1, on f (x, y), g(x, y) = w(x, y) โ‹† f (x, y). Also let t(x, y) be an array of random thresholds which are identically and independently distributed (i.i.d.), with the uniform distribution on the discrete set { 0 , 1 ,... , 255 }. The two binary halftone images are then computed as

bf (x, y) =

255 , if f (x, y) > t(x, y), 0 , otherwise bg(x, y) =

255 , if g(x, y) > t(x, y), 0 , otherwise

1.1) (10pts) Compute the expected value of bf (x, y) as a function of f (x, y)

1.2) (10pts) Compute the variance of bf (x, y) as a function of f (x, y)

1.3) (20pts) Compute the expected value of bg (x, y) as a function of f (x, y)

1.4) (20pts) Compute the variance of bg (x, y) as a function of f (x, y)

1.5) (10pts) Let f(x,y) be the image provided for this problem on the course website. Include in your report:

1.5.1) Figure 1 showing g(x, y) and the caption

1.5.2) Figure 2 showing two random samples of bf (x, y) and the caption

1.5.3) Figure 3 showing two random samples of bg(x, y) and the caption

(Hint: Use MATLAB command โ€˜randโ€™ for sampling thresholds t(x, y) to generate bf (x, y).)

  1. (30pts) Consider the following 4 ร— 4 image f (x, y) with 3 bits per pixel, i.e., pixel values take values in { 0 , 1 , 2 ,... , 7 }:

f (x, y) =

2.1) (10pts) Define transformation g(x, y) = T (f (x, y)) that will equalize the pixel histogram of f (x, y), so that the pixel values of g(x, y) can also be represented by 3 bits.

2.2) (10pts) Compute all pixels of 4 ร— 4 matrix g(x, y).

2.3) (10pts) Find the frequency of occurrence of each pixel value of g(x, y), and use this result to draw the histogram of pixel intensities of g(x, y) (this may be done by hand). Indicate on the plot the labels of each axis, and mark the height of each histogram bin.

2 / 2