XE33PVR::Assignment 1

The first assignment is very simple and one of the main purpose is get acquainted with the upload_system and with some Matlab basis and some peculiarities when working with images. Understading of this introductory assignemnt may save lot of debugging time later, in more complicated assignments. Download the images person.jpg and empty_room.jpg to your working directory.
  1. Write a simple Matlab showimage.m script that performs the following simple experiment.

    Do all displaying functions work? Discuss the results? What is the reason for different behavior? Write your analysis to your script in form of comments.

    Grading: [1 point(s)] for correct analysis

  2. Write a Matlab funtion compareim.m that compares two images and returns binary image with "1" in those pixels where the difference will be grater than a specified threshold. If im1,im2 are color images return "1" in positions where any of the color channel differences is grater than a threshold.

    Specifications: [binim,maskedim]=compareim(im1,im2,thr)

    The function should be robust. It should correctly handle incompatible input parameters, for instance if im1 and im2 have different number of pixels. See the Matlab function error.

    Grading: [3 point(s)] for a complete functionality if im1,im2 are grayscale images. 4 points for complete functionality on color images.

  3. General comments. The programming style will also be evaluated. All your scripts and comments shuold be properly commented.

  4. Pack your working directory with all images, codes and upload to the upload_system .


[XE33PVR labs | Responsible: Ondrej Chum ]
Last modified at 11:21, 07 November 2007 CET.