ARITHMETIC_MEAN_CVIP

arithmetic_mean_cvip() - finds the arithmetic average of the pixels.

Contents

SYNTAX

new_image = arithmetic_mean_cvip( imageP,  mask_size)

Input Parameters Include :

Output Parametrs Include :

DESCRIPTION

Arithmetic mean filter smoothens out local variations in an image, like a low pass filter. This function scans the whole image using blocks of size mask-size and performs arithmetic averaging inside each block and replaces the center pixel value by the resultant average value. As the mask size increases, more noise mitigation occurs and as a result the image gets blurred.

REFERENCE

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

EXAMPLE

% Read Image

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

% Mask size

 mask_size = 7;

% Call function

 new_image = arithmetic_mean_cvip( imageP,mask_size);

% Display input image

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


% Display output image

 figure; imshow(new_image);title('output Image');

CREDITS

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