STIRA
0.1
|
computes Kuwahara filtered image More...
#include <KuwaharaFilter.h>
Public Member Functions | |
KuwaharaFilter () | |
constructor | |
~KuwaharaFilter () | |
destructor | |
Static Public Member Functions | |
static Image * | Run (Image *pImageIn, int windowSize=5) |
applies Kuwahara filter to image | |
static int | GetSmallestIndex (double *pArray, int size) |
gets the index at which position the smallest member of the given array is located More... | |
computes Kuwahara filtered image
The filtering window is divided in four subwindows. For each subwindow, mean and varince are computed. The central pixel value is then replaced by the mean of the window with the smallest variance.
Reference: http://www.ph.tn.tudelft.nl/Courses/FIP/noframes/fip-Smoothin.html
|
static |
gets the index at which position the smallest member of the given array is located
pArray | the array with values |
size | size of the array |