MaxFilter
Details
   - MaxFilter is a nonlinear filter commonly used to locally smooth data and diminish pepper-like noise, where the amount of smoothing is dependent on the value of r.
 - The function applied to each range-r neighborhood is Max.
 - The data can be any of the following:
 - 
      
      
list arbitrary-rank numerical array tseries temporal data such as TimeSeries, TemporalData, … image arbitrary Image or Image3D object audio an Audio object video a Video object  - For multichannel images, MaxFilter replaces each pixel by a pixel in its neighborhood that has the maximum total intensity, averaged over all channels.
 - MaxFilter[data,{r1,r2,…}] computes the maximum value in 
 blocks centered on each sample. - MaxFilter assumes the index coordinate system for lists and images.
 - At the data boundaries, MaxFilter uses smaller neighborhoods.
 
     
     Examples
open all close allBasic Examples (3)
Scope (13)
Applications (4)
History
Introduced in 2008 (7.0) | Updated in 2015 (10.2) ▪ 2016 (11.0) ▪ 2025 (14.3)
Text
Wolfram Research (2008), MaxFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxFilter.html (updated 2025).
CMS
Wolfram Language. 2008. "MaxFilter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/MaxFilter.html.
APA
Wolfram Language. (2008). MaxFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxFilter.html
BibTeX
@misc{reference.wolfram_2025_maxfilter, author="Wolfram Research", title="{MaxFilter}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/MaxFilter.html}", note=[Accessed: 03-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_maxfilter, organization={Wolfram Research}, title={MaxFilter}, year={2025}, url={https://reference.wolfram.com/language/ref/MaxFilter.html}, note=[Accessed: 03-November-2025]}