

scilabsem



1.ARITHEMETIC FILTER
2.GEOMETRIC FILTER
3.HARMONIC FILTER
4.CONTRAHARMNIC FILTER
Q=+1,- 1
All the filter worked except the arithmetic filter.
The arithmetic and geometric filter cannot remove gamma noise.
The contra-harmonic filter was most effective since its beginning to restore the white circle at the center.
Again , the contra-harmonic filter wins.


Objective: Be able to restore the original image from a degraded image using Wiener filter
Steps:
or the product of FT of f(image) and h (spatial degradation function) that is G(u,v):
where a and b is the total distance for which the image has been displaced in the x and y direction.
2.Add noise to this blurred image
For the noise I used: n=grand(ix,iy,'nor',0.05,0.06);
The blurred and noisy image:
3.Use Wiener filter to restore the original image.
The Wiener filter aka minimum mean square error filter or least square error filter.
As stated earlier,the objective is to find an estimate of the original image f(x,y) from the of the corrupted image such that the mean square error between them is minimized. Based on these conditions, the minimum of the error function is given in the frequency domain by the expression :
where
From here the restored image f(x,y) can be retrieved as the ifft of F(u,v).
4. Effects of varying the values of a,b and at constant T=1(sec) and applied noise (normal / gaussian).
as expected , there will be no capture image as a=b=T=1.
Here we notice that as the distance a,b is reduced the image captured becomes less blurred and we can see that the text become more clear. Moreover, as the blurring is reduced the degradation due to the noise become more apparent and becomes a major factor in precluding the restoration of the image. So.
5.Effects of varying the noise added while at constant a=b=0.01, and T=1.
APPLYING RAYLEIGH NOISE:
APPLYING EXPONENTIAL NOISE:
APPLYING UNIFORM NOISE:
APPLYING NORMAL OR GAUSSIAN NOISE:
APPLYING SPECKLE NOISE:
The speckle noise was easily removed by the W.Filter as seen in the image above but the restored image still retained the degradation effects of the blur.
APPLYING SALT AND PEPPER NOISE:
Some errors and remarks: