You are on page 1of 5

Assignment #3 Digital Image Processing

Written Report
Q1:
Part b:
First filter acts as high pass filter enhancing the edges and making other things dark. The mask
detects edges in the horizontal direction . Second filter is the first filter rotated by 90 degrees.it
detects edges in vertical direction. Third filter is again high pass filter but it has filtered image better
than the first and second one because it detects edges in all directions . Fourth filter is low pass filter
and it has blurred the image.
Part c:
Filtering the image first by averaging filter has smoothed out the result of all filters of part b.
Averaged image Convolved with mask A

Convolved with mask B Convolved with mask C

Convolved with mask D

This could have been done using a single mask, if we took the mask matrix by dividing each
element of the matrix with the weighted average of the matrix.

Q2:
Median filter removes salt and pepper noise far better than averaging filter but increasing
the size of median filter results in loss of detail of the image. median filter removes salter
and pepper noise and makes the image blur.

Averaged image

Q3:
Decimation after filtering has smoothed out the edges which were previously more
prominent when filtering was not performed on the image before decimation.
Original Image Decimated without filtering

Decimated 2nd time without filtering Decimated 3rd time without filtering

You might also like