encyclopegia.org

Guided filter

A guided filter is an edge-preserving smoothing image filter. As with a bilateral filter, it can filter out noise or texture while retaining sharp edges.

A guided filter is an edge-preserving smoothing image filter. As with a bilateral filter, it can filter out noise or texture while retaining sharp edges. (1) q_i = a_k I_i + b_k, \forall i \in \omega_k (2) q_{i} = p_{i} - n_{i} in which: q_{i} is the i_{th} output pixel; p_i is the i_{th} input pixel; n_{i} is the i_{th} pixel of noise components; I_i is the i_{th} guidance image pixel; (a_k, b_k) are some linear coefficients assumed to be constant in \omega_k . The reason to use a linear combination is that the boundary of an object is related to its gradient. The local linear model ensures that q has an edge only if I has an edge, since \nabla q = a \nabla I . Subtract (1) and (2) to get formula (3);At the same time, define a cost function (4): (3) n_{i} = p_{i} - a_k I_{i} - b_k (4) E(a_{k},b_{k})=\sum_{i{\epsilon}{\omega}_{k}}^{}((a_{k}I_{i} + b_{k} - p_{i})^{2} + {\epsilon}a_{k}^{2}) in which \epsilon is a regularization parameter penalizing large a_{k} ; \omega_{k} is a window centered at the pixel k . And the cost function's solution is: (5) a_{k} = \frac{\frac{1}{\left|\omega\right|}\sum_{i\epsilon\omega_{k}}I_{i}p_{i} - \mu_{k}\bar{p_{k}}}{\sigma^{2}_{k}+\epsilon} (6) b_{k} = \bar{p_{k}} - a_{k}\mu_{k} in which \mu_{k} and \sigma^{2}_{k} are the mean and variance of I in \omega_{k} ; \left|\omega\right| is the number of pixels in \omega_{k} ; \bar{p}_{k} = \frac{1}{\left|\omega\right|}\sum_{i\epsilon\omega_{k}}p_{i} is the mean of p in \omega_{k} . After obtaining the linear coefficients (a_k, b_k) , the filtering output q_i is provided by the following algorithm: mean_{I} = f_{mean}(I) mean_{p} = f_{mean}(p) corr_{I} = f_{mean}(I.*I) corr_{Ip} = f_{mean}(I.*p) 2. var_{I} = corr_{I} - mean_{I.} * mean_{I} cov_{Ip} = corr_{Ip} - mean_{I.} * mean_{p} 3. a = cov_{Ip}./(var_{I} + \epsilon) b = mean_{p} - a. * mean_{I} 4. mean_{a} = f_{mean}(a) mean_{b} = f_{mean}(b) 5. q = mean_{a.} * I + mean_{b} f_{mean} is a mean filter with a wide variety of O(N) time methods. Due to the local linear model of q = aI + b , it is possible to transfer the structure from the guidance I to the output q . This property enables some special filtering-based applications, such as feathering, matting and dehazing.

References

  1. Guided Image Filtering · retrieved 2026-11-17 · rev 1258164511
    Cite this reference

    MLA "Guided Image Filtering." He, Kaiming; Sun, Jian; Tang, Xiaoou (2013). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.

    Chicago "Guided Image Filtering." He, Kaiming; Sun, Jian; Tang, Xiaoou (2013). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA He, Kaiming; Sun, Jian; Tang, Xiaoou (2013). (2026). Guided Image Filtering. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  2. Guided filtering of images - MATLAB imguidedfilter · retrieved 2026-11-17 · rev 1258164511
    Cite this reference

    MLA "Guided filtering of images - MATLAB imguidedfilter." 2026-11-17. https://www.mathworks.com/help/images/ref/imguidedfilter.html. Accessed 25 November 2026.

    Chicago "Guided filtering of images - MATLAB imguidedfilter." 2026-11-17. https://www.mathworks.com/help/images/ref/imguidedfilter.html.

    APA encyclopegia.org. (2026). Guided filtering of images - MATLAB imguidedfilter. Retrieved November 25, 2026, from https://www.mathworks.com/help/images/ref/imguidedfilter.html

  3. OpenCV: Filters · retrieved 2026-11-17 · rev 1258164511
    Cite this reference

    MLA "OpenCV: Filters." 2026-11-17. https://docs.opencv.org/master/da/d17/group__ximgproc__filters.html#ga86813d59f8452a9600e979c6287805f5. Accessed 25 November 2026.

    Chicago "OpenCV: Filters." 2026-11-17. https://docs.opencv.org/master/da/d17/group__ximgproc__filters.html#ga86813d59f8452a9600e979c6287805f5.

    APA encyclopegia.org. (2026). OpenCV: Filters. Retrieved November 25, 2026, from https://docs.opencv.org/master/da/d17/group__ximgproc__filters.html#ga86813d59f8452a9600e979c6287805f5

  4. FFmpeg Filters Documentation · retrieved 2026-11-17 · rev 1258164511
    Cite this reference

    MLA "FFmpeg Filters Documentation." 2026-11-17. https://www.ffmpeg.org/ffmpeg-filters.html#guided. Accessed 25 November 2026.

    Chicago "FFmpeg Filters Documentation." 2026-11-17. https://www.ffmpeg.org/ffmpeg-filters.html#guided.

    APA encyclopegia.org. (2026). FFmpeg Filters Documentation. Retrieved November 25, 2026, from https://www.ffmpeg.org/ffmpeg-filters.html#guided

  5. Guided Image Filtering Wikipedia revision 1258164511, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1258164511
    Cite this reference

    MLA "Guided Image Filtering Wikipedia revision 1258164511, retrieved 2026-11-18." 2026-11-17. https://web.archive.org/web/20170323172320/http://www.jiansun.org/papers/GuidedFilter_ECCV10.pdf. Accessed 25 November 2026.

    Chicago "Guided Image Filtering Wikipedia revision 1258164511, retrieved 2026-11-18." 2026-11-17. https://web.archive.org/web/20170323172320/http://www.jiansun.org/papers/GuidedFilter_ECCV10.pdf.

    APA encyclopegia.org. (2026). Guided Image Filtering Wikipedia revision 1258164511, retrieved 2026-11-18. Retrieved November 25, 2026, from https://web.archive.org/web/20170323172320/http://www.jiansun.org/papers/GuidedFilter_ECCV10.pdf

Cite this article

MLA

"Guided filter." encyclopegia.org, 2024, https://encyclopegia.org/wiki/guided-filter. Accessed 25 November 2026.

Chicago

"Guided filter." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/guided-filter.

APA

encyclopegia.org. (2024). Guided filter. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/guided-filter

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Cherry Filter

stub · references available

filter press

stub · references available

The Guided Fate Paradox

stub · references available

packet filter

stub · references available

capacitor-input filter

stub · references available

polarizing filter

stub · references available

diesel particulate filter

stub · references available

guided missile cruiser

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1258164511 · 0.5 · snapshot enwiki-001258164511

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.