KUWAHARA_FILTER_CVIP
kuwahara_filter_cvip() - an edge preserving,smoothing filter.
Contents
SYNTAX
new_image = kuwahara_filter_cvip( imageP,W)
Input parameters include:
- imageP - Input image can be gray image or rgb image of MxN size.
- W - Filter block size.
Output parameter include :
- new_image - The output image after filtering.
DESCRIPTION
Kuwahara filter is an edge preserving smoothing filter. Unlike other smoothing filters, the kuwahara filter enhances the edge details in an image. This function implements the non-linear edge preserving kuwahara filter which adapts to the underlying image characteristics in each image window of size specified by the user.
REFERENCE
1.Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read Image imageP = imread('kuw.png'); % Block size W = 7; % Calling function new_image = kuwahara_filter_cvip( imageP,W); % Display input image figure;imshow(imageP);title('Input Image'); % Display output images 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