Louisiana State University Department of Electrical and Computer Engineering EE4780 - Introduction to Computer Vision Spring 2007 Problem Set 2 Assigned: February 23, 2007 (Friday) Due: March 6, 2007 (Tuesday) What to Return: Email your m-file(s) to the TA by midnight. Problem: Under the Matlab image processing toolbox, there is an image called "pears.png". Your task is to write m-file(s) that will do the following: 1) Find the locations of visible pears. 2) Determine the relative sizes of each pear. (that is, number of pixels belonging to each pear) Write a function: function [ pear_x, pear_y, pear_size ] = ps2(img); % img: input image (could be color image) % pear_x: a column vector keeping the x coordinates of pears % pear_y: a column vector keeping the y coordinates of pears % pear_size: a column vector keeping the size of the pears Evaluation: It is not easy that an algorithm finds all pears and sizes accurately. Your grade will be based on the relative performances.