A Gentle Introduction to Bilateral Filtering and its Applications A Gentle Introduction to Bilateral Filtering and its Applications
“Fixing the Gaussian Blur”: the Bilateral Filter
Sylvain Paris – MIT CSAIL
Fixing the Gaussian Blur: the Bilateral Filter Sylvain Paris MIT - - PowerPoint PPT Presentation
A Gentle Introduction A Gentle Introduction to Bilateral Filtering to Bilateral Filtering and its Applications and its Applications Fixing the Gaussian Blur: the Bilateral Filter Sylvain Paris MIT CSAIL Blur Comes from Blur Comes
Sylvain Paris – MIT CSAIL
input
Same Gaussian kernel everywhere.
input
The kernel shape depends on the image content.
[Aurich 95, Smith 97, Tomasi 98]
space weight
not new
range weight
I new
normalization factor
new
q p
r s
σ σ
∈
S
q p
q p
Same idea: weighted average of pixels.
pixel intensity pixel position
space
space range normalization
Gaussian blur ( )
( )
∈
− − =
S
I I I G G W I BF
q q q p p p
q p | | || || 1 ] [
r s
σ σ
Bilateral filter
[Aurich 95, Smith 97, Tomasi 98] space space range p p q q
( )
∈
− =
S
I G I GB
q q p
q p || || ] [
σ
input
∈
− − =
S
I I I G G W I BF
q q q p p p
q p | | || || 1 ] [
r s
σ σ
reproduced from [Durand 02]
∈
S
q q q p p p
r s
σ σ
Only pixels close in space and in range are considered.
space range
σs = 2 σr = 0.1 σr = 0.25 σr = ∞
(Gaussian blur)
σs = 6 σs = 18
input
Exploring the Parameter Space Exploring the Parameter Space
σs = 2 σr = 0.1 σr = 0.25 σr = ∞
(Gaussian blur)
σs = 6 σs = 18
input
Varying the Range Parameter Varying the Range Parameter
σs = 2 σs = 6 σs = 18 σr = 0.1 σr = 0.25 σr = ∞
(Gaussian blur)
input
Varying the Space Parameter Varying the Space Parameter
Depends on the application. For instance:
– e.g., 2% of image diagonal
– e.g., mean or median of image gradients
features thinner than ~2σs
close-up kernel
) ( ) 1 ( n n
+
( )
∈
− − =
S
I I I G G W I BF
q q q p p p
q p | | || || 1 ] [
r s
σ σ
( )
∈
− − =
S
G G W I BF
q q q p p p
C C C q p || || || || 1 ] [
r s
σ σ
For color images
color difference
For gray-level images
intensity difference
scalar 3D vector (RGB, Lab)
input
( )
( )
∈
− − =
S
I I I G G W I BF
q q q p p p
q p | | || || 1 ] [
r s
σ σ