You are on page 1of 1

Digital Image Processing

Assignment 1
Deadline: Midnight, 21
st
August 2014

Submit a zip file named roll no_A1 containing: a pdf document with your answers (images
and plots should be properly labeled) and the codes. Name the codes using the question
number.
1. What are the standard metrics used to measure image quality and contrast?
Write codes to implement them. Measure the quality and contrast of the given
images a, b and c.
2. Create a dummy image of size 512 x 512. Write a script to find the locus of
equidistant points from the centre of this image. Experiment with the 3
distance metrics (Euclidean, city block distance and chess board distance).
Assign a grey value to the distances (ex. Pixel at distance 1 = pixel value 10)
and display the images. If the distance is computed from a different point in
the image (not the centre) how does the loci change?

3. Consider the given image Poor.

a. Enhance the image using histogram equalisation (HE). Do NOT use in-
built function for HE. Write the code.
b. Plot the histograms before after HE.
c. Apply HE on the given image repeatedly. Observe the results (image
and histogram). What is your conclusion?
d. Try converting the given image into a binary image using histogram
specification. Explain your method clearly and show the results of
processing.

4. Take your face image (only greyscale) with a non-plain background and do
the following:
a. Negative conversion
b. Binarise using thresholding
c. Extract the face part from the background using intensity slicing.
d. Contrast stretch using two different mapping functions. Show the
functions you used.

You might also like