COSC$4393/6380$
Digital$Image$Processing$
Department$of$Computer$Science$
University$of$Houston$
Assignment$#2$
Due:$11/12/08!
1) Write a function to read input images provided with this assignment.
Compute the histogram of the original image and perform histogram
equalization. Show the original image, its histogram, the equalized image
and its histogram.
2) Write a function that allows for histogram shaping of input image.
Specifically, the shaping operations enabled include a triangle shaped
distribution and a Gaussian distribution. The Gaussian distribution will
utilize a fixed mean but a user defined standard deviation. For each input
image, show the original image, its histogram, user defined shaping
histogram, the shaped image and its histogram.
3) Generate a toeplitz stripe image of the size 48x48. Place a square of
32x32 in the center of the image and perform a rotation of 45 degrees. Use
bilinear interpolation to transform the non-integer coordinates to integer
values. Plot the generated and the transformed image.
4) Use the image generated in part 3 and computes its DFT. Center the
frequency plot, compress it logarithmically and perform a contrast stretch.
Display the resulting magnitude and phase plots. Generate a mask for the
parts in the Fourier transform that came from the diagonals in the original
image. Mask out the frequencies in the Fourier domain and take an inverse
transform. Display the resulting image. Use the fftw library to perform all
DFT computations (http://www.fftw.org/).