WIENER_FILTER_CVIP

wiener_filter_cvip() - performs the Wiener restoration filtering.

Contents

SYNTAX

  Y = wiener_filter_cvip(d,h,cutoff,limitGain,noiseImage,originalImage)

Input Parameters Include :

Output Parameter Include:

DESCRIPTION

This function performs the wiener filter restoration operation on an input degraded image to restore it to its original state. The wiener filter response increses as the signal-to-noise ratio of the image increases. As, the signal-to-noise ratio of the image starts to decrease, the wiener filter response also starts to decrease eventually reaching zero. Thus, the filter attenuates all the noise present in the image and boosts only the image signal. The function applies the filter by multiplying it to the Fourier transform of the degraded image and obtains the restored image by taking the inverse transform of the resultant image from the filtering operation.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

Example

% Read Image

 originalImage = imread('butterfly.tif');

% degraded image

 d = imread('Butterfly.gaussian.tif');

% noise image

 noiseImage = imread('Butterfly.gaussian.tif');

% Cuttoff frequency

 cutoff =32;

% limit gain

 limitGain = 10;

% degradation function.

 h = [ 2.50 4.500 2.250 :4.500 9.001 4.500 : 2.250 4.500 2.250];

% call function

 Y = wiener_filter_cvip(d,h,cutoff,limitGain,noiseImage,originalImage);

% Display input image

 figure;imshow(originalImage);title('Input Image');

 figure;imshow(d);title('Input Degraded Image');

 figure;imshow(noiseImage);title('Input noise Image');

% Display output image

 figure;imshow(remap_cvip(Y));title('Output Image');
ans =

    0.0027


ans =

    0.0028


ans =

    0.0047

CREDITS

Author: Mehrdad Alvandipour, July 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website