MAXIMUM_FILTER_CVIP

maximum_filter_cvip() - performs maximum filtering operation.

Contents

SYNTAX

new_image = maximum_filter_cvip( imageP,  mask_size)

Input parameters include:

Output parameter include :

DESCRIPTION

The function implements a maximum filter to restore a degraded image. The function scans the image with blocks of size specified by the user and performs the filtering operation on the image to remove any pepper type of noise present in the image. Maximum filter is used to remove pepper noise from an image. The filter replaces the noise pixels with the maximum gray value present in the current block of the image.

REFERENCE

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

EXAMPLE

% Read Image

 imageP = imread('Flowers.bmp_saltpepper.bmp');

% Mask size

 mask_size = 3;

% Calling function

 new_image = maximum_filter_cvip( imageP,3);

% Display input image

 figure;imshow(imageP);title('Input Image with pepper noise ');

% Display output image

 figure; imshow(remap_cvip(new_image,[]));title('Output image');

CREDITS

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