Assignment 2
Gaussian pyramids and gradient computation
In this assignment you need to generate the Gaussian pyramid of an image and compute the image gradient at each level of the pyramid. The program should allow the user to move between the different levels and display the image gradient magnitude/orientation when requested. The program should satisfy the following specifications:
- The image to be processed by the program should be either read from a file or captured directly from a camera.
- The input image should be converted to grayscale and displayed on the screen. All subsequent processing should be performed on the grayscale image.
- The Gaussian pyramid should be computed and stored in memory. A track-bar should be used to move between the different levels of the pyramid. The maximal number of levels in the pyramid is 4.
- The following options should be implemented:
- Show the original image in color (this applies only to the highest scale - you do not need to maintain a pyramid of the color image).
- Show the gray scale image (in the selected scale).
- Show the magnitude of the image gradients (in the selected scale) normalized to the range [0..255].