Details and Options

In NonlocalMeansFilter[image,r,ns,w], normalized similarities between the range r neighborhoods are used as weights to replace each pixel by a weighted average of all the pixels in the range w window. The similarity between two neighborhoods is computed by Exp[-Max[0,SquaredEuclideanDistance[n1,n2]/len-2ns]/(k^2 ns)], where len is the total number of channel values in the neighborhood and k is .