1 / 51

A Gentle Introduction to Bilateral Filtering and its Applications

A Gentle Introduction to Bilateral Filtering and its Applications. How does bilateral filter relates with other methods? Pierre Kornprobst (INRIA). 0:35. Many people worked on… edge-preserving restoration. Bilateral filter. Partial differential equations. Anisotropic diffusion.

reneparker
Download Presentation

A Gentle Introduction to Bilateral Filtering and its Applications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Gentle Introductionto Bilateral Filteringand its Applications How does bilateral filter relates with other methods? Pierre Kornprobst (INRIA) 0:35

  2. Many people worked on… edge-preserving restoration Bilateral filter Partial differential equations Anisotropic diffusion Local mode filtering Robust statistics

  3. Goal: Understand how does bilateral filter relates with other methods Bilateral filter Partial differential equations Local mode filtering Robust statistics

  4. Goal: Understand how does bilateral filter relates with other methods Bilateral filter Partial differential equations Local mode filtering Robust statistics

  5. Spatial window Smoothed local histogram Local mode filtering principle You are going to see that BF has the same effect as local mode filtering

  6. Let’s prove it! • Define global histogram • Define a smoothed histogram • Define a local smoothed histogram • What does it mean to look for local modes? • What is the link with bilateral filter?

  7. Definition of a global histogram • Formal definition • A sum of dirac, « a sum of ones » Where is the dirac symbol (1 if t=0, 0 otherwise)

  8. # pixels 1 1 1 1 1 1 1 1 1 1 intensity

  9. # pixels Smoothing the histogram 1 1 1 1 1 1 1 1 1 1 intensity

  10. Smoothing the histogram

  11. # pixels 1 1 1 1 1 1 1 1 1 1 intensity

  12. # pixels 1 1 1 1 1 1 intensity

  13. # pixels 1 1 1 1 1 1 intensity

  14. # pixels 1 1 1 1 intensity

  15. # pixels intensity

  16. # pixels This is it! intensity

  17. Definition of a local smoothed histogram • We introduce a « smooth spatial window » Smoothing of intensities where Spatial window And that’s the formula to have in mind!

  18. Definition of local modes A local mode i verifies

  19. Local modes? • Given • We look for • Result:

  20. Local modes? • Given • We look for • Result: One iteration of the bilateral filter amounts to converge to the local mode

  21. Take home message #1 Bilateral filter is equivalent to mode filtering in local histograms [Van de Weijer, Van den Boomgaard, 2001]

  22. Goal: Understand how does bilateral filter relates with other methods Bilateral filter Partial differential equations Local mode filtering Robust statistics

  23. Robust statistics • Goals: Reduce the influence of outliers, preserve discontinuities • Minimizing a cost Robust or not robust? e.g., Penalizing differences between neighbors Smoothing term [Huber 81, Hampel 86]

  24. Robust statistics • Goals: Reduce the influence of outliers, preserve discontinuities • Minimizing a cost (« local » formulation) • And to minimize it [Huber 81, Hampel 86]

  25. If we choose • The minimization of the error norm gives • The bilateral filter is • So similar! They solve the same minimization problem! [Hampel etal., 1986]: The bilateral filter IS a robust filter! Iterated reweighted least-square Weighted average of the data

  26. Error norm Influence function Back to robust statistics… Robust or not robust? How to choose the error norm? How is the shape related to the anisotropy of the diffusion? What’s the graphical intuition?

  27. From the energy Graphical intuition Error norm NOT ROBUST ROBUST The error norm should not be too penalizing for high differences

  28. From its minimization Graphical intuition Influence function INLIERS NOT ROBUST OUTLIERS ROBUST OUTLIERS The influence function in the robust case reveals two different behaviors for inliers versus outliers

  29. What is important here? • The qualitative properties of thisinfluence function, distinguishing inliers from outliers. • In robust statistics, many influence functions have been proposed Gaussian Hubert Lorentz Tukey Let’s see their difference on an example!

  30. input

  31. Tukey(very sharp) zero tail

  32. fast decreasing tail Gauss(very sharp,similar to Tukey)

  33. Lorentz(smoother) slowly decreasing tail

  34. Hubert(slightly blurry) constant tail

  35. Take home message #2 The bilateral filter is a robust filter. Because of the range weight, pixels with different intensities have limited or no influence. They are outliers. Several choices for the range function. [Durand, 2002, Durand, Dorsey, 2002, Black, Marimont, 1998]

  36. Goal: Understand how does bilateral filter relates with other methods Bilateral filter Partial differential equations Local mode filtering Robust statistics

  37. What do I mean by PDEs? • Continuous interpretation of images • Two kinds of formulations • Variational approach • Evolving a partial differential equation

  38. Two ways to explain it • The « simple one » is to show the link between PDEs and robust statisitcs Bilateral filter Partial differential equations Local mode filtering Robust statistics Black, Marimont, 1998, etc]

  39. PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs PDEs Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics Robust statistics Robust statistics Robust Statistics continuousdiscrete

  40. Two ways to explain it • The « more rigorous one » is to show directly the link between a differential operator and an integral form Bilateral filter Partial differential equations Local mode filtering Robust statistics

  41. Gaussian solves heat equation • Linear diffusion • When time grows, diffusion grows • Diffusion is isotropic

  42. Gaussian solves heat equation Is a solution of the heat equation when

  43. And with the range? [Buades, Coll, Morel, 2005] • Considering the Yaroslavsky Filter • When Integral representation Space range is in the domain (operation similar to M-estimators) At a very local scale, the asymptotic behavior of the integral operator corresponds to a diffusion operator

  44. More precisely • We have • And then we enter a large class of anisotropic diffusion approaches based on PDEs New idea here: It is not only a matter of smoothing or not, but also to take into account the local structure of the image

  45. Take home message #3 Bilateral filter is a discretization of a particular kind of a PDE-based anisotropic diffusion. Welcome to the PDE-world! [Barash 2001, Elad 2002, Durand 2002, Buades, Coll, Morel, 2005] [Kornprobst 2006]

  46. Tschumperle, Deriche Perez, Gangnet, Blake Tschumperle, Deriche Breen, Whitaker Sussman Desbrun etal The PDE world at a glance

  47. Summary Bilateral filter is one technique for anisotropic diffusion and it makes the bridge between several frameworks. From there, you can explore news worlds! Local mode filtering Bilateral filter Anisotropic diffusion Robust statistics PDEs

More Related