FORMATION DE
L’IMAGE
Chapitre 2 du cours « Traitement de l’Image »
2ème année.
16/01/2021 Chap 2 Formation 2
16/01/2021 Chap 2 Formation 3
Le contenu
• La formation de l’image
• Acquisition et capteurs
• Introduction au format numérique
LA FORMATION
16/01/2021 Chap 2 Formation 5
La prise de vue (pin-hole model)
16/01/2021 Chap 2 Formation 6
Formation de l’image
spectre émis Sources lumineuses
I ( x, y , z , t ) Lumière
naturelle
réflectivité
(diffuse,
spéculaire, …) Lampe halogène
Tube fluorescent
R ( x, y , z , t )
Objet
(illuminé)
spectre réfléchi
couleur
o Source
« perçue »
o Objet
Observateur o Milieu de propagation
16/01/2021 Chap 2 Formation 7
Gammes spectrales
période
vitesse de la
c lumière
l = cT =
n
longueur fréquence
d’onde
Spectre visible (380-780 nm)
Ultraviolet (UV) Infrarouge (IR)
longueur
400 500 600 700 d’onde (nm)
couleurs « pures » (monochromatiques)
16/01/2021 Chap 2 Formation 8
La lumière
intégralité du spectre
S Co (l ) visible à amplitude
(énergie lumineuse)
constante
Source pure
l (nm)
380 780
tons lumière
jaune/rouge bleutée
(« chaude ») (« froide »)
Lampe à incandescence Lampe électroluminescente (LED
(corps « chauffé ») « blanche »)
…et spectres discontinus, à raies, mixtes
16/01/2021 Chap 2 Formation 9
Influence de la source
« rectifiable » en corrigeant Lampe à incandescence
Lumière naturelle la balance des blancs lors de
l’acquisition
Eclairage fluorescent Vernis phosphorescent
16/01/2021 Chap 2 Formation 10
Système projectif (Géométrie)
Y
y
A a O
X
z
Z x gG = f
Objet A Y
⎧ XA ⎫
⎪ xa = f ⎪
F’ ⎪ ZA ⎪
Z A >> za ⎨ ⎬
F O ⎪ y =f YA ⎪
Z ⎪ a
a ⎩ Z A ⎪⎭
Image
16/01/2021 Chap 2 Formation 11
Vision 3D
16/01/2021 Chap 2 Formation 12
Vision par ordinateur
16/01/2021 Chap 2 Formation 13
Field of focus
résultat
L’ACQUISITION
16/01/2021 Chap 2 Formation 15
L’acquisition numérique
16/01/2021 Chap 2 Formation 16
Codage numérique
• Matrice de valeurs de taille MxN
⎡ I (0,0) I (0,1) ... I (0, N −1) ⎤
⎢ ⎥
⎢ I (1,0) I (1,1) ... I (1, N −1) ⎥
I (x, y) = ⎢ ⎥
⎢ ... ... ... ... ⎥
⎢⎣ I (M −1,0) I (M −1,1) ... I (M −1, N −1) ⎥⎦
16/01/2021 Chap 2 Formation 17
La vision humaine
o Bâtonnets
ü ~ 120 millions, forme allongée
périphérie
ü En périphérie de la rétine
ü Vision nocturne (regroupés, très sensibles à la
luminosité mais pas aux détails)
o Cônes
ü ~ 6 millions, 3 sous-familles (S, M, L)
ü Au centre de la rétine (fovéa) centre
ü Vision diurne (densité élevée)
Distribution angulaire
Système Visuel Humain (SVH)
=
Système trichromate
16/01/2021 Chap 2 Formation 18
Test chromatique
} Trichromate
12 26 42 35 96
} Dichromate daltonisme
o Deutéranope (-V)
6 2 5 6
o Protanope (-R)
2 4 3 9
} Achromate
Test d’Ishihara, extrait d’un ensemble 38 planches (pas de perception couleur)
(en lumière naturelle)
16/01/2021 Chap 2 Formation 19
Modélisation de l’acquisition SVH
S Co (l ) S C (l )
bB
bR
bV
l (nm) réduction à 3 l (nm)
380 780 réponses 380 780
spectre initial « spectre » équivalent à la sortie du SVH
lmax
bi = òl S CO (l )Ci (l )d l
min
résultante d’un cône (R, V ou B)
réponse spectrale d’un cône (R, V ou B)
16/01/2021 Chap 2 Formation 20
CCD pour l’acquisition des couleurs
Filtre
Echantillonneur Quantifieur
Passe-bas
anti-repliement et positions continues intensités analogiques
« uniformité » R, V et B discrètes numériques
(Mono)CCD
Éléments Tri-CCD
photosensibles
16/01/2021 Chap 2 Formation 21
Définition de l’image couleur (1/5)
Image numérique
=
Matrice de pixels « colorés »
§ Dimensions (nombre de pixels)
§ Coordonnées (position du pixel)
§ Valeur (couleur du pixel)
16/01/2021 Chap 2 Formation 22
Définition de l’image couleur (2/5)
40 112 176 193
R=212 R=205 R=103 R=62
G=16 G=65 G=120 G=127 43 94 148 186
B=40 B=112 B=176 B=193
R=201 R=197 R=154 R=98 106 80 137 188
G=26 G=69 G=106 G=117
B=43 B=94 B=148 B=186 250 213 156 145
R=192 R=138 R=127 R=97
G=101 G=59 G=96 G=129 251 255 255 210
B=106 B=80 B=137 B=188
Matrice B
Å
R=255 R=230 R=140 R=73
G=250 G=192 G=118 G=97
B=250 B=213 B=156 B=145
R=250 R=255 R=255 R=182 16 65 120 127
G=248 G=248 G=246 G=176
B=251 B=255 B=255 B=210
26 69 106 117
Intensité vectorielle 101 59 96 129
250 192 118 97
« Vraies » couleurs 212 205 103 62 Å 248 248 246 176
201 197 154 98
§ Composante rouge (R) Matrice V
192 138 127 97
§ Composante verte (V)
255 230 140 73
§ Composante bleue (B) 250 255 255 182
Format usuel : entiers 0 à 255
Matrice R
16/01/2021 Chap 2 Formation 23
Définition de l’image couleur (3/5)
Autres palettes 0
0
60 64 62 62 55 51
59 73 98 90 66 54
255
72 105 167 170 120 74
88 91 188 202 184 150 Å 0
103 77 191 205 203 190
75 131 208 209 207 202
255
Intensité scalaire 255
Palette
(niveaux de gris)
0
Couleurs indexées ou « fausses » couleurs
§ Scalaire (index de table)
§ Palette (table de correspondance couleur) 255
16/01/2021 Chap 2 Formation 24
Définition de l’image couleur (4/5)
16/01/2021 Chap 2 Formation 25
Définition de l’image couleur (5/5)
I ( x, y )
x
x
Image numérique
=
Signal 2D discret
y
y
I (m, n)
§ Fonction continue échantillonnée m
o Scalaire ou vectorielle
o 2 périodes (pas) d’échantillonnage
§ Représentation « signal »
o Scalaire ~ altitude
o « fausses » couleurs
n
16/01/2021 Chap 2 Formation 26
Dématricage (Matrice de Bayer)
16/01/2021 Chap 2 Formation 27
Algorithme (demosaicing)
16/01/2021 Chap 2 Formation 28
G B
16/01/2021 Chap 2 Formation 29
Colorisation d’images
16/01/2021 Chap 2 Formation 30
Résolution spatiale (1/2)
• Mesure le plus petit détail discernable dans l’image
• Pixel (Picture element), dots (pixels) per unit distance,
dots per inch (dpi)
• Reflex : 24Mpx
16/01/2021 Chap 2 Formation 31
Résolution spatiale (2/2)
1500 ´ 1500
300 ´ 300
150 ´ 150
16/01/2021 Chap 2 Formation 32
Super-résolution
16/01/2021 Chap 2 Formation 33
Capteur vidéo aéroporté
LES FORMATS VIDEO
16/01/2021 Chap 2 Formation 35
Le contexte analogique
Image
S(t)
Transmission
Ecran Observateur humain
16/01/2021 Chap 2 Formation 36
N Europe = 625 lignes
Nombre de lignes
NUSA = 525 lignes
Résolution de l’œil : ares=1/60°
Dl
Diag = H 2 + L2
L 4
RLH = =
H 3
H
Nl =
Dl
D ~2m
æ a res ö
Dl = 2 D tanç ÷
è 2 ø
16/01/2021 Chap 2 Formation 37
Formats standards
• VHS 200 lignes
• S-VHS (Hi-8) 400 lignes
• DV 500 lignes
• DVD 576 lignes (MPEG2)
• HD 720 lignes (MPEG4)
• HD (2K) 1080 lignes (p ou i)
• QFHD (4K) 2160 lignes
• UHD (8K) 4320 lignes (IMAX)
16/01/2021 Chap 2 Formation 38
Formats numériques
Pixel 1 Pixel 2 Pixel 3
Schéma 1 : R V B R V B R V B
Pixel 1 Pixel 2 Pixel 3
Schéma 2 : R V B a R V B a R V B a
Int 1 Int 2 Int 3
a : canal alpha a Î [0 - 1] [aR aV aB]
16/01/2021 Chap 2 Formation 39
Chroma Keying : couleur de référence
R = aRo + (1 - a ) Rk
V = aVo + (1 - a )Vk
B = aBo + (1 - a ) Bk
16/01/2021 Chap 2 Formation 1. 40
Plan du cours
• Chap 1 : Introduction
• Chap 2 : Formation de l’image optique
• Chap 3 : Transformée de Fourier 2D
• Chap 4 : Filtrage de l’image
• Chap 5 : Restauration de l’image