PeronaMalikFilter
applies a Gaussian regularization of width σ to the image gradient in the conductance function.
Details

- Perona–Malik filtering is an inhomogeneous diffusion method typically used for smoothing images while preserving edges.
- PeronaMalikFilter works on 2D grayscale or multichannel images, operating on each channel separately.
- PeronaMalikFilter applies the diffusion equation
to every image channel
.
- The function
of the σ-regularized gradient norm
defines the conductance of the diffusion current. At edges where the gradient norm is large in comparison to k, diffusion is suppressed, thereby preserving edges.
- In PeronaMalikFilter[image,t], t parameterizes the evolution of the diffusion and thereby the spatial range of the filter.
- The conductance parameter k can take any positive value. The default value of k is Automatic, which assigns to k the 50% quantile of the gradient norm
of image. If more than one channel is present, the gradient norm of the channel average is taken into account.
- The regularization parameter σ is the standard deviation of the Gaussian kernel
, with which the image gradient
is convolved. The σ-regularization makes the conductance term
less susceptible to noise. If
, a finite difference scheme is used to determine the gradient.
- PeronaMalikFilter[image] is equivalent to PeronaMalikFilter[image,1,Automatic,0].
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
Perona–Malik filtering applied to an MRI image:

https://wolfram.com/xid/0gcsllry97s8x1c8ve-i9xma0

Specify a large conductance parameter to preserve only strong edges:

https://wolfram.com/xid/0gcsllry97s8x1c8ve-cla4bk

Specifying a minimum scale to neglect edges created by noise:

https://wolfram.com/xid/0gcsllry97s8x1c8ve-fnzvyv

Applications (2)Sample problems that can be solved with this function
Use Perona–Malik filtering to isolate ovarian follicles in an ultrasound image:

https://wolfram.com/xid/0gcsllry97s8x1c8ve-wt3vx

Smooth an ultrasound image to segment an angiomyolipoma:

https://wolfram.com/xid/0gcsllry97s8x1c8ve-l5wayx

https://wolfram.com/xid/0gcsllry97s8x1c8ve-jl9sf1

Properties & Relations (1)Properties of the function, and connections to other functions
Wolfram Research (2010), PeronaMalikFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/PeronaMalikFilter.html.
Text
Wolfram Research (2010), PeronaMalikFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/PeronaMalikFilter.html.
Wolfram Research (2010), PeronaMalikFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/PeronaMalikFilter.html.
CMS
Wolfram Language. 2010. "PeronaMalikFilter." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PeronaMalikFilter.html.
Wolfram Language. 2010. "PeronaMalikFilter." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PeronaMalikFilter.html.
APA
Wolfram Language. (2010). PeronaMalikFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PeronaMalikFilter.html
Wolfram Language. (2010). PeronaMalikFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PeronaMalikFilter.html
BibTeX
@misc{reference.wolfram_2025_peronamalikfilter, author="Wolfram Research", title="{PeronaMalikFilter}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/PeronaMalikFilter.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_peronamalikfilter, organization={Wolfram Research}, title={PeronaMalikFilter}, year={2010}, url={https://reference.wolfram.com/language/ref/PeronaMalikFilter.html}, note=[Accessed: 25-March-2025
]}