A Gentle Introduction to Bilateral Filtering and its Applications A Gentle Introduction to Bilateral Filtering and its Applications
Naïve Image Smoothing: Gaussian Blur
Sylvain Paris – MIT CSAIL
Nave Image Smoothing: Gaussian Blur Sylvain Paris MIT CSAIL - - PowerPoint PPT Presentation
A Gentle Introduction A Gentle Introduction to Bilateral Filtering to Bilateral Filtering and its Applications and its Applications Nave Image Smoothing: Gaussian Blur Sylvain Paris MIT CSAIL Notation and Definitions Notation and
A Gentle Introduction to Bilateral Filtering and its Applications A Gentle Introduction to Bilateral Filtering and its Applications
Sylvain Paris – MIT CSAIL
x y
adjacent pixels are different.
look more similar.
pixel → average of its neighbors
average
input square neighborhood
sum over all pixels q normalized box function intensity at pixel q result at pixel p
∈
S
q q p
σ
input
unrelated pixels unrelated pixels related pixels
pixel position pixel weight
box window Gaussian window
average
input per-pixel multiplication
input
box average
Gaussian blur
normalized Gaussian function
∈
S
q q p
σ
Same idea: weighted average of pixels.
1
unrelated pixels unrelated pixels uncertain pixels uncertain pixels related pixels
pixel position pixel weight
⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛− =
2 2
2 exp 2 1 ) ( σ π σ
σ
x x G
size of the window
∈
S
q q p
σ
small σ large σ input limited smoothing strong smoothing
– e.g. 2% of the image diagonal – property: independent of image resolution
– linear convolution – well-known operation – efficient computation (recursive algorithm, FFT…)
edges are blurred.
– Only spatial distance matters – No edge term
input
∈
− =
S
I G I GB
q q p
q p || || ] [
σ
space