CMPT 414   Model-based Computer Vision
Spring 2020

Programming Assignment 1

Due Date: January 28, 2020 (Tuesday)


Objective:

In this assignment you will learn some early image processing and edge detection techniques in MATLAB. Use images specified below and others as your test images. Some of the details will be explained in the class.

Assignment:

  1. Write your own code to linearly stretch the gray scale on "dark.tif" so that the image will have a better contrast than in the original image. Try histogram equalization for the same image.

  2. Given images with random Gaussian noises ("trees_var002.tif", "trees_var0010.tif", "trees_var025.tif") and salt-and-pepper noises ("trees_salt004.tif", "trees_salt020.tif", "trees_salt050.tif"), create various sizes of smoothing filters and apply them for several iterations to generate smoothed images.

    Compare the result with the median filtering (several iterations) provided by MATLAB.

  3. Try various filters to Sharpen color images, e.g., "peppers.png" and "flower-glass.tif". Compare the results between sharpening on all RGBs and on luminance alone.

  4. Edge detection. (a) Try at least three different edge operators on one of the noisy images and one of the smoothed images. Compare the results.

    (b) Write your own code to implement the "Canny edge operator" as outlined in the Class Notes to generate good thin edges.

What to hand in:

Submit a single archived file online in CourSys that contains:
(a) A brief (5-6 pages) report on: (i) location of your working assignment and brief instructions for running it, (ii) what you have observed and learned, including figures as needed.
(b) your program source code.

Related files