Wednesday, 9 March 2016

HW2 - Image Filtering in Frequency Domain - Anti-Aliasing


Due: 23:59 19 March 2016, Saturday  
Where to upload: Use canvas
  • Resize the given image to one-third of its original size 942x942 by downsampling. 
  • Observe the aliasing on his blazer after the downsampling.
  • To prevent the aliasing, apply a gaussian filter in frequency domain with an appropriate \(\sigma\). (That is, Do not make the image too blurry and do not have aliasing after the downsampling. )
You can use MATLAB functions such as fspecial to obtain a gaussian, but do not use imresize, imgaussfilt or so. 

BONUS +50%:
  • Find the best (\sigma\) for the gaussian filter. (read explanations below)
Some notes: Recall that downsampling the image by two expands the frequency domain representation of the image by two. So, you can guess what happens in frequency domain when we downsample by three. Considering this fact, you should be able to find out the best possible boundaries of our low pass filter in order to prevent overlapping. You can assume that the gaussian function is effectively zero after (2\sigma\) (see three sigma rule).

The image is taken from Prof. Enis Çetin's DSP lecture notes book. You can find a free copy from here.




Prof. Cevdet Aykanat (Image courtesy of Prof. Enis Çetin http://kilyos.ee.bilkent.edu.tr/~ee424/Lecture%20Notes.htm)

My results:

No comments:

Post a Comment