NonlocalMeansFilter
NonlocalMeansFilter[image,r]
applies a nonlocal means filter to image by comparing a range r neighborhood to its nearby neighborhoods.
NonlocalMeansFilter[image,r,ns]
assumes an additive noise power value ns for comparing neighborhoods.
NonlocalMeansFilter[image,r,ns,w]
compares neighborhoods in a range w window.
Details and Options
- NonlocalMeansFilter is a nonlinear filter used for edge-preserving smoothing.
- 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 .
- NonlocalMeansFilter[image,r] is equivalent to NonlocalMeansFilter[image,r,Automatic,5r].
- NonlocalMeansFilter returns an image of the same type as image.
- NonlocalMeansFilter takes a Padding option. The default setting is Padding->"Fixed".
Examples
open allclose allScope (5)
Applications (3)
Remove Gaussian color noise from an image:
Use a NonlocalMeansFilter to remove smaller stars from an astronomical image:
Unsharp masking using NonlocalMeansFilter:
Properties & Relations (1)
NonlocalMeansFilter returns an image of the same type as image:
Text
Wolfram Research (2012), NonlocalMeansFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/NonlocalMeansFilter.html.
CMS
Wolfram Language. 2012. "NonlocalMeansFilter." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NonlocalMeansFilter.html.
APA
Wolfram Language. (2012). NonlocalMeansFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NonlocalMeansFilter.html