ALPHA_FILTER_CVIP
alpha_filter_cvip() - performs an alpha-trimmed mean filtering operation.
Contents
SYNTAX
new_image = alpha_filter_cvip( imageP, mask_size, p)
Input Parameters include :
- imageP - Input image can be gray image or rgb image of MxN size.
- mask_size - Block size of the filter. An odd integer between 3-11.
- p - The p value in alpha trimmed mean formula.
Output Parameter Include :
- new_image - The output image after adaptive contrast filtering
DESCRIPTION
This filter is used when an image contains both short and long tailed types of noise such as Gaussian and salt and peppper noises.This filter varies between a median and a mean filter. The function calculates the alpha trimmed mean in blocks of size mask-size from the input image. The amount of trim id determined by the factor p.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image imageP = imread('salt_pep.bmp'); % Mask size mask_size = 3; % p value in alpha trimmed mean formula. p = 2; % Calling function new_image = alpha_filter_cvip( imageP, 3, 2); % Display input image figure;imshow(imageP);title('Input Image'); % Display output image figure; imshow(hist_stretch_cvip(new_image,0,1,0,0),[]);title('Output image');
CREDITS
Author: Mehrdad Alvandipour, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website