HW6, computer problem
EECS 203A, UCI, Fall 2004
by Nasser Abbasi
FIrst start by reading my Mathematica pakcage. This contains Mathematica functions I have written for basic image processing and filtering
In[1]:=
In[4]:=
Out[6]=
Now, sample a 2D continuos gaussian to obtain a discrte version of Gaussian 2D, to use as a filtering window to convolve the image with
In[7]:=
Out[7]=
Out[8]=
In[54]:=
Now create the 2D gaussian filter, have it centers at the center of the image
In[14]:=
Now generate 'g', the degraded image
Out[239]=
Out[240]=
Out[244]=
In[135]:=
Now center the images, and generate their DFT
Now generate restored image
Created by Mathematica (November 24, 2004) |