FUCKING FIRST COMMIT
BIN
Cornee_erodeCercle1_approxContour.PNG
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
TestConvolve_customkernel.PNG
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
TestConvolve_orig.PNG
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
babouin_diffFermeture.PNG
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
babouin_diffOuverture.PNG
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
babouin_dilate2cercle.PNG
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
babouin_erosion2cercle.PNG
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
babouin_fermeture1.PNG
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
babouin_gradientmorpho.PNG
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
babouin_orig.PNG
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
babouin_ouverture1.PNG
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
babouin_sobel.PNG
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
bateau_orig.PNG
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
bateau_saltandpepper.PNG
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
bateau_saltandpepper_mean3.PNG
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
bateau_saltandpepper_median3.PNG
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
binary_dilate_cercle.PNG
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
binary_dilate_rectangle.PNG
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
cafe_binary.PNG
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
cafe_count.PNG
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
cafe_dilateCercle2.PNG
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
cafe_erodeCercle3.PNG
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
cafe_orig.PNG
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
cercle_dilate_carre.PNG
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
cercle_dilate_cercle.PNG
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
cercle_dilate_hexa.PNG
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
cercle_erode_carre.PNG
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
cercle_erode_cercle.PNG
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
cercle_erode_hexa.PNG
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
cercle_orig.PNG
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
circuit_2_binary.PNG
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
circuit_2_color.PNG
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
circuit_2_dilate.PNG
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
circuit_2_erode.PNG
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
circuit_diff.PNG
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
circuit_erode.PNG
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
circuit_horiz1.PNG
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
circuit_horiz2.PNG
Normal file
After Width: | Height: | Size: 834 B |
BIN
circuit_orig.PNG
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
circuit_pastilles_erodeCercle4.PNG
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
circuit_pastilles_erodeCercle4_dilateCercle4.PNG
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
circuit_pistes.PNG
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
cornee_erosion8hexa.PNG
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
cornee_mean.PNG
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
cornee_median.PNG
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
cornee_orig.PNG
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
cornee_substractErosion.PNG
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
cornee_substractbinary.PNG
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
freq_bateau_orig.PNG
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
freq_bateau_saltandpepper.PNG
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
freq_bateau_saltandpepper_mean3.PNG
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
freq_bateau_saltandpepper_median3.PNG
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
freq_cornee_mean.PNG
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
freq_cornee_median.PNG
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
freq_cornee_orig.PNG
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
freq_moly_gaussien.PNG
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
freq_moly_gradientN.PNG
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
freq_moly_laplacien.PNG
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
freq_moly_orig.PNG
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
freq_moly_shadow.PNG
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
freq_moly_sharpen.PNG
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
freq_moly_smooth.PNG
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
meb_binary.PNG
Normal file
After Width: | Height: | Size: 5 KiB |
BIN
meb_countIs407.PNG
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
meb_dilate4.PNG
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
meb_erodeCercle2.PNG
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
meb_orig.PNG
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
moly_gaussien.PNG
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
moly_gradientN.PNG
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
moly_laplacien.PNG
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
moly_orig.PNG
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
moly_shadow.PNG
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
moly_sharpen.PNG
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
moly_smooth.PNG
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
partb_carre.PNG
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
partb_cercle.PNG
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
partb_etiquetteRGB.PNG
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
partb_hexagonal.PNG
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
partb_orig.PNG
Normal file
After Width: | Height: | Size: 8.7 KiB |
381
rapport.md
Normal file
|
@ -0,0 +1,381 @@
|
|||
---
|
||||
|
||||
settings:
|
||||
enabled_extensions:
|
||||
- default
|
||||
- extra
|
||||
- tables
|
||||
- tasklist
|
||||
- codehilite(linenums=true)
|
||||
---
|
||||
<style>
|
||||
body{
|
||||
max-width: 1000px;
|
||||
width: 95%;
|
||||
margin-bottom: 60vh;
|
||||
}
|
||||
h1 {
|
||||
counter-reset: countA;
|
||||
text-align: center;
|
||||
color: #004335;
|
||||
background-color: #EDFFFF;
|
||||
padding-top: 10px;
|
||||
border-top: 5px solid #EEEEEE !important;
|
||||
border-bottom: 5px solid #EEEEEE !important;
|
||||
margin-top: 3em !important;
|
||||
left: -30px;
|
||||
width: calc(100% + 60px);
|
||||
}
|
||||
.markdown-body>h1:first-of-type{
|
||||
margin-top: 0px !important;
|
||||
padding: 20px;
|
||||
font-size: 3em;
|
||||
top: -30px;
|
||||
border-top: none !important;
|
||||
}
|
||||
h1 .headeranchor-link{
|
||||
margin-left: 0px !important;
|
||||
}
|
||||
h2 {
|
||||
counter-reset: countB;
|
||||
color: #004335;
|
||||
margin-top: 2em !important;
|
||||
left: -15px;
|
||||
width: calc(100% + 30px);
|
||||
}
|
||||
h2 .headeranchor-link{
|
||||
margin-left: -20px !important;
|
||||
}
|
||||
h3 { counter-reset: countC; }
|
||||
h3 { counter-reset: countD; }
|
||||
h1::before, h1::after {content: " - ";}
|
||||
h2::before {
|
||||
content: counter(countA) ". ";
|
||||
counter-increment: countA;
|
||||
}
|
||||
h3::before {
|
||||
content: counter(countA) "-" counter(countB) ". ";
|
||||
counter-increment: countB;
|
||||
}
|
||||
h4::before {
|
||||
content: counter(countA) "-" counter(countB) "-" counter(countC) ". ";
|
||||
counter-increment: countC;
|
||||
}
|
||||
h5::before {
|
||||
content: counter(countA) "-" counter(countB) "-" counter(countC) "-" counter(countD) ". ";
|
||||
counter-increment: countD;
|
||||
}
|
||||
info, good, warn, err{
|
||||
border-left: 4px solid #000;
|
||||
padding: 5px;
|
||||
padding-left: 15px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
info {
|
||||
background-color: #E8FAFF;
|
||||
border-left-color: #8BE8FF;
|
||||
}
|
||||
good {
|
||||
background-color: #E8FFEA;
|
||||
border-left-color: #6DFF7B;
|
||||
}
|
||||
warn {
|
||||
background-color: #FFF5EB;
|
||||
border-left-color: #FFE28B;
|
||||
}
|
||||
err {
|
||||
background-color: #fceded;
|
||||
border-left-color: #dfb5b4;
|
||||
}
|
||||
.toc{
|
||||
margin-left: 5%;
|
||||
padding-left: 5%;
|
||||
border-left: 5px solid #EEEEEE;
|
||||
}
|
||||
.toc>ul:first-child>li:first-child{
|
||||
display: none;
|
||||
}
|
||||
.linenos{
|
||||
color: #BBB;
|
||||
padding: 0px;
|
||||
border-right: 4px solid #EEE !important;
|
||||
}
|
||||
.linenos pre{
|
||||
padding-right: 5px;
|
||||
}
|
||||
.suppr{
|
||||
display: none;
|
||||
content: "";
|
||||
}
|
||||
todo::before{
|
||||
color: #F00;
|
||||
content: "TODO";
|
||||
background-color: #0FF;
|
||||
font-weight: bold;
|
||||
padding: 2px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.codehilite pre{
|
||||
background-color: #272822;
|
||||
}
|
||||
.hidden{
|
||||
display: none;
|
||||
}
|
||||
|
||||
img{
|
||||
width: 70%;
|
||||
}
|
||||
.dual, .quad{
|
||||
text-align: center;
|
||||
}
|
||||
.dual img{
|
||||
max-width: calc(100% / 2 - 10px);
|
||||
margin: 5px;
|
||||
}
|
||||
.quad img{
|
||||
max-width: calc(50% / 2 - 10px);
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
# TP 2 ImageJ : Filtrage, Contours, Morphologie Mathématique
|
||||
|
||||
__Thomas ABOT__
|
||||
__Thibaut CHARLES__
|
||||
|
||||
|
||||
<div class="hidden">
|
||||
katia.charriere@telecom-bretagne.eu
|
||||
</div>
|
||||
[TOC]
|
||||
|
||||
Partie I : Filtrage spatial, Contours
|
||||
===============================================================================
|
||||
|
||||
Exercice 1 : Filtrage linéaire bidimensionnel non récursif dans le domaine spatial
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
### Filtres
|
||||
#### Smooth
|
||||
<span class="dual">
|
||||

|
||||

|
||||
</span>
|
||||
|
||||
#### Sharpen
|
||||
<span class="dual">
|
||||

|
||||

|
||||
</span>
|
||||
|
||||
#### Shadows
|
||||
<span class="dual">
|
||||

|
||||

|
||||
</span>
|
||||
|
||||
#### Convolution
|
||||
|
||||
##### Tests
|
||||
<span class="dual">
|
||||

|
||||
</span>
|
||||
> La convolution est correcte
|
||||
|
||||
##### Flou Gaussien
|
||||
<span class="dual">
|
||||

|
||||

|
||||
</span>
|
||||
|
||||
##### Gradient N
|
||||
<span class="dual">
|
||||

|
||||

|
||||
</span>
|
||||
|
||||
##### Laplacien
|
||||
<span class="dual">
|
||||

|
||||

|
||||
</span>
|
||||
|
||||
### Commentaires
|
||||
|
||||
- <todo/>
|
||||
|
||||
|
||||
|
||||
Exercice 2 : Filtres non-linéaires bidimensionnels, les filtres médians
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
### Médian
|
||||
<span class="dual"></span>
|
||||
|
||||
### Moyenne
|
||||
<span class="dual"></span>
|
||||
|
||||
|
||||
### Bateau, Salt and Pepper
|
||||
<span class="dual"></span>
|
||||
|
||||
#### Médian, taille 3
|
||||
<span class="dual"></span>
|
||||
#### Moyenne, taille 3
|
||||
<span class="dual"></span>
|
||||
|
||||
|
||||
|
||||
Exercice 3 : Introduction à la détection de contours
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Partie II : Morphologie Mathématique
|
||||
===============================================================================
|
||||
|
||||
Traitement d'images binaires
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
### Importance du choix de l'élément structurant (voisinage)
|
||||
|
||||
#### Érosion de taille 3 sur l'image partB
|
||||
|
||||
##### Érosion carrée
|
||||
<span class="quad"></span>
|
||||
##### Érosion héxagonale
|
||||
<span class="quad"></span>
|
||||
##### Érosion Circulaire
|
||||
<span class="quad"></span>
|
||||
|
||||
#### Cercle1
|
||||
<span class="quad"></span>
|
||||
|
||||
##### Érosion carrée/hexagonale/circulaire
|
||||
<span class="quad"></span>
|
||||
##### Dilatation carrée/hexagonale/circulaire
|
||||
<span class="quad"></span>
|
||||
|
||||
#### Cercle2
|
||||
- Idem que pour Cercle1
|
||||
- Disparition du cercle quand l'érosion est trop forte
|
||||
|
||||
#### Rectangles
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
##### Érosion carrée/hexagonale/circulaire
|
||||
<span class="quad"></span>
|
||||
##### Dilatation carrée/hexagonale/circulaire
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
#### Deviner le type de voisinage
|
||||
|
||||
On prend une forme de base, puis on le dilate beaucoup.
|
||||
|
||||
> Dilatation circulaire / rectangulaire
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
#### Choix du voisinage
|
||||
|
||||
Il dépend de l'image source:
|
||||
- On préférera un voisinage carré pour conserver les angles de l'image
|
||||
- Le voisinage circulaire est plus adapté pour les images avec des formes courbes
|
||||
|
||||
### Utilisation des transformations élémentaires
|
||||
|
||||
#### Circuit
|
||||
|
||||
Obtention des frontières par différence entre l'image érodée/dilatée et l'image originale
|
||||
|
||||
> Image originale/érodée/différence entre les deux
|
||||
<span class="quad"></span>
|
||||
|
||||
#### Grains de café
|
||||
On érode les grains de café pour faire disparaître les plus petits, puis on dilate puis compte les grains restants.
|
||||
|
||||
> Image originale/érodée/dilatée/comptage
|
||||
<span class="quad"></span>
|
||||
|
||||
#### Circuit (bis)
|
||||
On érode le circuit afin de faire disparaître les pistes puis dilate autant qu'on a érodé afin de retrouver la taille originale des pastilles.
|
||||
Une fois qu'on a les pastilles, on fait la différence entre l'originale et les pastilles.
|
||||
|
||||
> Image originale/érodée/re-dilatée/différence
|
||||
<span class="quad"></span>
|
||||
|
||||
Pour isoler les pistes obliques, il faut éroder l'image suivant une ligne oblique.
|
||||
|
||||
### Transformations utiles
|
||||
|
||||
#### Remplissage des trous
|
||||
|
||||
On peut boucher les trous en dilatant puis érodant l'image.
|
||||
> Image originale/binarisée/érodée/re-dilatée
|
||||
<span class="quad"></span>
|
||||
|
||||
#### Étiquetage
|
||||
|
||||
> Image originale/étiquetée
|
||||
<span class="quad"></span>
|
||||
|
||||
### Exercice
|
||||
|
||||
> Image originale/binarisée/érodée/re-dilatée/Comptage
|
||||
<span class="quad"></span>
|
||||
|
||||
Morphologie décimale
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
### Cornée
|
||||
|
||||
> Originale / érosion / soustraction & binarisation
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
> Approximation des contours via érosion
|
||||
<span class="quad"></span>
|
||||
|
||||
### Gradient morphologique
|
||||
|
||||
> Originale / Gradient de Sobel
|
||||
<span class="quad"></span>
|
||||
|
||||
> Originale / Dilatée / Érodée / Gradient morphologique
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
### Filtrage morphologique
|
||||
|
||||
#### Fermeture
|
||||
> Originale / ... / Fermeture
|
||||
<span class="quad"></span>
|
||||
|
||||
#### Ouverture
|
||||
> Originale / ... / Ouverture
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
Exercices d'application
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
### Image partB
|
||||
|
||||
<todo/>
|
||||
|
||||
### Image meb
|
||||
|
||||
> Originale / Binarisation / Érosion / Dilatation / Comptage
|
||||
<span class="quad"></span>
|
||||
|
||||
|
||||
### Image circuit "binarisée"
|
||||
|
||||
<todo/>
|
BIN
rectangle_dilate_carre.PNG
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
rectangle_dilate_cercle.PNG
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
rectangle_dilate_hexa.PNG
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
rectangle_erode_carre.PNG
Normal file
After Width: | Height: | Size: 972 B |
BIN
rectangle_erode_cercle.PNG
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
rectangle_erode_hexa.PNG
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
rectangle_orig.PNG
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
riz_binary.PNG
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
riz_count.PNG
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
riz_dilateHorizontal4.PNG
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
riz_erodeHorizontal4.PNG
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
riz_orig.PNG
Normal file
After Width: | Height: | Size: 71 KiB |