2. Segmentation
Definition of segmentation
Extract the outlines of different regions in the image
Divide the image the image into regions with pixels which
have something in common
OTB – Monteverdi
Meanshift segmentation module
OTB (integration of ITK library)
Watershed segmentation
Region growing segmentation
Level set segmentation
Hybrid segmentation, etc...
orfeo-toolbox.org
2
4. Use case 1 : segmentation with mean-shift
Menu File > Open
./theme2/extraitIm2_C/Im2_c_extrait.tif
Menu Filtering > Mean-shift clustering
Change radius : 5
Spectral radius : 15
Min region size : 15
Clusters : ON
Change values and Click on Run button
Click on Close button after selecting right set of parameters
See also :
➢ Image filtered / Image clustered
➢ See OTB-Software-Guide.pdf for details orfeo-toolbox.org
4
14. Use case 2 : otbSegmentationApplication
Command line application : otbSegmentationApplication
Open ./theme2/extraitIm2_C/Im2_c_extrait.tif
Segment homogeneous areas
Save your results
orfeo-toolbox.org
14
17. Use case 3 : unsupervised clustering with k-means
Menu File > Open
./theme2/extraitIm2_C/Im2_c_extrait.tif
Menu Learning > k-means clustering (doc OTBSoftwareGuide.pdf)
Training 15%
Number of classes : 5
Iteration number : 100
Convergence : 0.0001
Save your results
Try with several parameters set
Visualization > Viewer > Compare results
orfeo-toolbox.org
17
21. Use case 4 : supervised classification with SVM (1/2)
Menu File > Open
./theme2/IM2/extraitIm2_C/Im2_c_extrait.tif
Menu Learning > SVM Classification
Create several classes (4-5)
➢ Add
➢ Select polygons (right click to end a polygon)
➢ Edit names
➢ Change colors
Learn
Display
orfeo-toolbox.org
21
22. Use case 4 : supervised classification with SVM (2/2)
Menu Learning > SVM Classification
Deselect random validation set
Select Display validation
Select your classes 1 by 1
➢ Select polygons (right click to end a polygon)
Display
Validate
File > Export selected polygons
orfeo-toolbox.org
22
25. Monteverdi – Feature extraction
Menu Filtering > Feature Extraction (3/4)
Mean, variance, Gradient, spectral angle
Original data (=> no need to concatenate channels after filtering)
Textures (energy, entropy, contrast, etc)
Morphological filters
Radiometric indexes
Vegetation (NDVI, ARVI, etc), Soil, Built up, Water
Edge density
Mean shift
orfeo-toolbox.org
25
26. Monteverdi – Feature extraction
Menu Filtering > Feature extraction (4/4)
Radiometric indexes
➢ Vegetation
NDVI, RVI, PVI, etc
➢ Soil
BI2
➢ Built up
ISU
orfeo-toolbox.org
26
27. Use case 5 : Segment with Feature extraction
Menu File > Open
./theme2/IM2/extraitIm2_C/Im2_c_extrait.tif
Menu Filtering > Feature extraction
Test the following features (See OTB-Software-Guide.pdf for technical
details on algorithms)
➢ Original data (=> no need to concatenate channels after filtering)
➢ Spectral angle : choose one vegetation pixel
➢ Variance, mean
➢ NDVI
➢ Meanshift filtering, etc.
Menu Learning > K-Means
Menu Learning > SVM (import polygons)
Compare your results
orfeo-toolbox.org
27