Filtrage frquentiel
Sverine Dubuisson
22 octobre 2010
Plan
Filtrage frquentiel
Plan du cours
Plan
Filtrage frquentiel
Filtrage spatial
Pour dtecter les contours dune image (sujet dun autre chapitre)
Plan
Filtrage frquentiel
Rduction du bruit
Dfinition du bruit
I
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtrage spatial
Produit de convolution 1D
I
Plan
Filtrage frquentiel
Filtrage spatial
Produit de convolution 2D
I
N X
M
X
f (i, j)h(n i, m j)
n=1 m=1
f (i, j) = (f ? h)(i, j) =
d 1
d 1
2
X
2
X
n= d 1
2
m= d 1
2
f (i, j)h(n i, m j)
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Exemple de convolution
Cas avec un filtre de taille d = 3
w1 w2 w3
h = w4 w5 w6
w7 w8 w9
I
= w1 f (i 1, j 1) + w2 f (i 1, j) + w3 f (i 1, j + 1)
+ w4 f (i, j 1) + w5 f (i, j) + w6 f (i, j + 1)
+ w7 f (i + 1, j 1) + w8 f (i + 1, j) + w9 f (i + 1, j + 1)
0
Pour conserver la moyenne originale
les
Pt de f dans f , on normalise
coefficients du filtre, donc on a i=1 wi = 1, o t = d 2 est le
nombre de coefficients du filtre
Bases du traitement des images
9 / 62
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Convolution 2D
Types de convolution
I
Plan
Filtrage frquentiel
1
d2
d 1
d 1
2
X
2
X
f (i + n, j + m)
n= d 1
m= d 1
2
2
Plan
Filtrage frquentiel
Le filtre de taille d = 3 :
h
1
1
1
9
1
1 1
1 1
1 1
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Lissage gaussien
Dfinition
I
Plan
Filtrage frquentiel
Lissage gaussien
Du continu au discret
I
Plan
Filtrage frquentiel
Lissage gaussien
Calcul des coefficients du filtre
I
Plus est grand, plus on rduit le bruit, mais plus limage filtre est
floue
Si est choisi trop grand, tous les dtails de limage sont perdus
Plan
Filtrage frquentiel
Lissage gaussien
1
Exemple pour = 0.625 ( 2
2 = 0.4)
I
= 0.4 10
0.03
0.16
5.98
0.16
0.03
0.16
7.7
27.8
7.7
0.16
Plan
Filtrage frquentiel
Lissage gaussien
1
Exemple pour = 0.625 ( 2
2 = 0.4)
Plan
Filtrage frquentiel
Lissage gaussien
Plan
Filtrage frquentiel
Lissage gaussien
Plan
Filtrage frquentiel
Autres filtres
Filtre binomial
I
1 4
4 16
1
6 24
h =
256
4 16
1 4
Newton
6
24
36
24
6
4
16
24
16
4
1
4
6
4
1
Plan
Filtrage frquentiel
Autres filtres
hp =
81
1
2
3
2
1
2
4
6
4
2
3
6
9
6
3
2
4
6
4
2
1
2
3
2
1
hc = 1
25
0
0
1
0
0
0
2
2
2
0
1
2
5
2
1
0
2
2
2
0
0
0
1
0
0
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Exemple dapplication
Plan
Filtrage frquentiel
Le filtre mdian
Dfinition
I
N1
2
N1
2
Plan
Filtrage frquentiel
Le filtre mdian
Dfinition
I
Plan
Filtrage frquentiel
Le filtre mdian
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Dfinition
I
Plan
Filtrage frquentiel
Filtrage de Nagao
Dfinition
I
Plan
Filtrage frquentiel
N X
M
X
f (i, j)h(n i, m j)
n=1 m=1
Plan
Filtrage frquentiel
Filtre moyenneur
I
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtrage frquentiel
Dfinitions
I
Trois familles :
filtrage passe-bas ;
filtrage passe-haut ;
filtrage passe-bande (et aussi coupe-bande).
Plan
Filtrage frquentiel
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtrage frquentiel
Principe du filtrage frquentiel 2D
Plan
Filtrage frquentiel
Filtrage passe-bas 1D
Principe
I
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtre passe-bas 2D
Dfinition
I
Plan
Filtrage frquentiel
1
si u 2 + v 2 D0
H(u, v ) =
si
u 2 + v 2 > D0
0
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
=
1+
u 2 +v 2
D0
2n
Plan
Filtrage frquentiel
Caractristiques
I
Plan
Filtrage frquentiel
Le filtre moyenneur
Le filtre gaussien
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtrage passe-haut 1D
Principe
I
Le signal est reconstruit par DFT inverse sans ses basses frquences,
donc sans sa frquence fondamentale
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtre passe-haut 2D
Dfinition
I
Plan
Filtrage frquentiel
1
si u 2 + v 2 D0
H(u, v ) =
0
si
u 2 + v 2 < D0
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
=
1+
D0
u 2 +v 2
2n
Plan
Filtrage frquentiel
Caractristiques
I
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtrage passe-bande 1D
Principe
I
Plan
Filtrage frquentiel
Plan
Filtrage frquentiel
Filtre passe-bande 2D
Dfinition
I
Plan
Filtrage frquentiel