KuwaharaFilter
KuwaharaFilter[data,r] computes for each element p in data the variance of the values in the four (r+1)×(r+1) squares that have p as a corner, and replaces p with the mean of the values of the square with least variance.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.