WLJS LogoWLJS Notebook

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.

Examples

Apply nonlocal means filtering to denoise an image:

img = ExampleData[{"TestImage", "Lena"}];
NonlocalMeansFilter[img, 2]

Please visit the official Wolfram Language Reference for more details.

On this page