YP_MEAN_CVIP
yp_mean_cvip() - performs a Yp mean filter.
Contents
SYNTAX
new_image = yp_mean_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 Yp mean formula.
Output Parameters include :
- new_image - The output image after filtering.
DESCRIPTION
This function scans the image by windows of size mask_size and calculates the ypmean mean of the elements in the window. yp mean filter will remove noise and smooth the images.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image imageP = imread('butterfly.tif_negexp7.tif'); % Calling function new_image = yp_mean_cvip( imageP, 7, -3); % 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