Assignment #3

Due to: Fr. Oct.3rd
Score: 5 points

The programs must be sent to the TA as MATLAB-scripts.

The requested program will show, that you are able to solve an obviously sophisticated problem with less than 20 lines of MATLAB code.
The task:

  1. Download and unzip the MATLAB workspace given below. It contains a 3D matrix representing 16 gray value images.
  2. Create a movie to look at the data. You'll see a blackboard, first blurred, then sharpened, then blurred again.
  3. Write a program to find the image which shows the sharpest image.
  4. gratulations, you just programmed an autofocus system for a digital camera !
Hints:
The sharper the image, the higher its contrast
MATLAB provides the function 'std2', look at the documentation what it is doing, then use it for the program !

you can download the MATLAB matrix needed
HERE (compressed, 1.5MB) or
HERE (uncompressed, 9.5MB).