Louisiana State University Department of Electrical and Computer Engineering EE4780 - Introduction to Computer Vision Spring 2007 Problem Set 3 Assigned: March 17, 2007 (Monday) Due: March 24, 2007 (Monday) What to Return: Email your m-file(s) to the TA by midnight. Problem 1: Write a matlab function that will implement least squares filtering - (constrained solution). Your function will be as follows: function [ img_restored ] = imgrestore(img, h, p, gamma); % img: input image (could be color image) % h: a 2D lowpass filter % p: a 2D highpass filter (it acts as a regularization term) % gamma: a scalar that controls the weight of the regularization term Problem 2: Write a matlab function that will implement inverse filtering with an ideal lowpass filter. Your function will be as follows: function [ img_restored ] = imgrestore2(img, h, cutoff); % img: input image (could be color image) % h: a 2D lowpass filter % cutoff: a scalar normalized to range [0-1] that determines the cutoff frequency