SMIL  1.0.4

A 2D Kuwahara filter implementation. More...

Detailed Description

A 2D Kuwahara filter implementation.

Performs the Kuwahara Filter, a noise-reduction filter that preserves edges. In the case of a 5x5 sampling window, the mean brightness and the variance of each of the four 3x3 regions, are calculated and the value of the center pixel is set to the mean value of the region that with the smallest variance.

See also
Kuwahara Filter on Wikipedia
Warning
Not yet implemented for RGB Images
Author
Vincent Morard
Jose-Marcio Martins da Cruz (port from Morph-M)
+ Collaboration diagram for Kuwahara Filter (2D):

Functions

template<class T >
RES_T kuwaharaFilter (const Image< T > &imIn, const int radius, Image< T > &imOut)
 kuwaharaFilter Kuwahara Filter More...
 
template<class T >
RES_T kuwaharaFilterRGB (const Image< T > &imIn, const int radius, Image< T > &imOut)
 kuwaharaFilterRGB Kuwahara Filter (color images) More...
 

Function Documentation

◆ kuwaharaFilter()

RES_T kuwaharaFilter ( const Image< T > &  imIn,
const int  radius,
Image< T > &  imOut 
)

kuwaharaFilter Kuwahara Filter

Parameters
[in]imIn: input Image
[in]radius:
[out]imOut: output Image (must be F_SIMPLE or F_DOUBLE ???)

◆ kuwaharaFilterRGB()

RES_T smil::kuwaharaFilterRGB ( const Image< T > &  imIn,
const int  radius,
Image< T > &  imOut 
)

kuwaharaFilterRGB Kuwahara Filter (color images)

Parameters
[in]imIn: input Image
[in]radius:
[out]imOut: output Image (must be F_SIMPLE or F_DOUBLE ???)