MATLAB: Adaptive filter with mask 5*5 for an image with noise

digital image processingfilter designfrequencywallis filter

how can mplement this adaptive filter with mask 5*5 for an image with noise :
f(x,y) = g(x,y) – ( (ση)^2 / (σL)^2 ) * ( g(x,y)-mL ))
where :
g(x,y) : is the value of the pixel (x,y) in the noisy image
ση : is the variance of the noise corrupting f(x,y)
σL : is the local variance for the pixels in Sxy
mL: the local mean for the pixels in Sxy

Best Answer

This looks like the Wallis Filter. See http://www.dtic.mil/dtic/tr/fulltext/u2/a248301.pdf. It does a localized contrast stretch where is sets the mean and standard deviation of every window equal to some specified values. There is no built-in MATLAB function to do the Wallis filter. You should be able to do this using stdfilt() and conv2(). Give that a try and come back if you can't figure it out.