Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

MEC3331 Unmanned Systems

Assignment 3

The following sample codes that you can use to process images with different filters.

im=imread( 'tiger.jpg');

subplot(131);

imshow(im);

 

Fy=fspecial( 'average',15);

outim=imfilter(im,Fy, 'replicate');

subplot(132);

imshow(outim);

 

diff=im-outim;

subplot(133);

imshow(diff);

 

The result is shown below:

 

 

You can use help fspecial” to check all built-in filters in MATLAB.

Your task for this assignment:

Take your own portrait as the original image and do the following:

1.    Use averaging filter, check the effect of different size

2.    Use gaussian filter and comment on the effect of different parameters

3.    Based on what we have discussed during lectures, a sharpened image can be generated with      addition and/or subtraction of original image and filtered image. Generate the sharpened image of yourself.

4.    Use simple edge detection filter

5.    Use Roberts, Prewitt and Sobel filters and comment on the difference.

6.    Bonus question: create your own filter and describe what you intend to achieve.