MIDPOINT_FILTER_CVIP

midpoint_filter_cvip() - performs a midpoint filtering operation.

Contents

SYNTAX

new_image = midpoint_filter_cvip( imageP,mask_size)

Input parameters include:

Output parameter include :

DESCRIPTION

This function performs mid-point filtering operation on a noisy image. The mid-point filter is both an order and a mean filter as it first orders the pixels values and then calculates the average of the ordered pixel values. The functions applies the filter on a block-by-block basis where the maximum and minimum pixel values in each block are found and then averaged. The function works best with Gaussian and Uniform type of noise images.

REFERENCE

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

EXAMPLE

% Read Image

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

% Mask size

 mask_size = 3;

% Calling function

 new_image = midpoint_filter_cvip( imageP,mask_size);

% Display input image

 figure;imshow(imageP);title('Input Image with uniform 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