Eccv10ppt PDF
Eccv10ppt PDF
Eccv10ppt PDF
– Existing methods
• Weighted Least Square [Lagendijk et al. 1988]
• Anisotropic diffusion [Perona and Malik 1990]
• Bilateral filter [Aurich and Weule 95], [Tomasi and Manduchi 98]
• Digital TV (Total Variation) filter [Chan et al. 2001]
Introduction
• Bilateral filter qi W ( p) p
jN ( i )
ij j
spatial Gs(xi-xj)
spatial Gs(xi-xj)
– Gradient distortion
gradient
reversal
• Preserves edges,
but not gradients
gradient
reversal
input enhanced
Introduction
• Our target - to design a new filter
– Edge-preserving filtering
Advantages of bilateral filter
– Non-iterative
– O(1) time, fast and non-approximate
Overcome bilateral filter’s
– No gradient distortion problems
Guided filter
qi pi ni min (aI i b pi ) 2 a 2
( a ,b )
i
ni - noise / texture
Linear regression
input p
output q
qi aI i cov( I , p )
a
var( I )
qi aI i b
b p aI
guide I
Bilateral/joint bilateral filter does
not have this linear model
Definition
Guided filter
cov k ( I , p )
• Extend to the entire image ak
vark ( I )
– In all local windows ωk ,compute
the linear coefficients bk pk aI k
– Compute the average of akIi+bk in
1
all ωk that covers pixel qi
qi
(a I
k |i
k i bk )
k
ai I i bi
qi
ω2
ω1
ω3
Definition
Guided filter
cov k ( I , p )
• Parameters ak
vark ( I )
– Window radius r
bk pk aI k
– Regularization ε
1
qi
(a I
k |i
k i bk )
k
ai I i bi
qi
ω2 2r
ω1
ω3
Guided filter: smoothing
a cascade of
mean filters
cov( I , p )
a var(I ) a0
var( I ) cov( I , p ) qi a I i b p
b p
b p aI
input p output q
var(I ) r : determines
band-width
guide I (like σs in BF)
Guided filter: edge-preserving
qi a I i b qi a I i I i a b
ε : degree of
cov( I , p ) edge-preserving
a (like σr in BF)
var(I )
I i qi
guide I output q
input &
Example – edge-preserving smoothing guide
guided
filter
(let I=p)
bilateral
filter
input filtered
q a I
large
fluctuation
detail
(input - filtered)
enhanced
(detail * 5 + input) gradient
reversal
gradient
reversal
Example – detail enhancement
gradient keep
reversal anti-aliased
gradient
reversal
very small ε
guide I
preserve most
gradients output q
q a I
input p
Example – feathering
guide I
(size 3000x2000)
Example – feathering
filter input p
guide I (dark channel prior filter output q
[He et al. 09])
Example – haze removal
stronger
texture
Thank you!