Digital Image Processing - Assignment II | COSC 4393, Assignments of Digital Signal Processing

Material Type: Assignment; Professor: Shah; Class: Digital Image Processing; Subject: (Computer Science); University: University of Houston; Term: Fall 2008;

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-04o
koofers-user-04o 🇺🇸

5

(1)

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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/).

Partial preview of the text

Download Digital Image Processing - Assignment II | COSC 4393 and more Assignments Digital Signal Processing in PDF only on Docsity!

COSC 4393/

Digital Image Processing Department of Computer Science University of Houston Assignment # Due: 11/12/

  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/).