SlideShare a Scribd company logo
Orfeo Toolbox
Segmentation, classification

         Stéphane MAY
     stephane.may@cnes.fr




                               orfeo-toolbox.org
                                               1
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
Monteverdi – Mean-shift

Filtering > Meanshift clustering




                                           orfeo-toolbox.org
                                                           3
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
Orfeo toolbox - otbSegmentationApplication




otbSegmentationApplication
                                                 orfeo-toolbox.org
                                                                 5
otbSegmentationApplication (1/8)




             orfeo-toolbox.org
                             6
otbSegmentationApplication (2/8)




             orfeo-toolbox.org
                             7
otbSegmentationApplication (3/8)




             orfeo-toolbox.org
                             8
otbSegmentationApplication (4/8)




             orfeo-toolbox.org
                             9
otbSegmentationApplication (5/8)




             orfeo-toolbox.org
                            10
otbSegmentationApplication (6/8)




             orfeo-toolbox.org
                            11
otbSegmentationApplication (7/8)




             orfeo-toolbox.org
                            12
otbSegmentationApplication (8/8)




             orfeo-toolbox.org
                            13
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
Monteverdi – Classification modules

Menu Learning
   SVM classification
   K-Means clustering




                                              orfeo-toolbox.org
                                                             15
Monteverdi

Menu Learning > K-means




                                   orfeo-toolbox.org
                                                  16
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
Monteverdi

Menu Learning > SVM classification (1/3)




                                           orfeo-toolbox.org
                                                          18
Monteverdi

Menu Learning > SVM classification (2/3)




                                           orfeo-toolbox.org
                                                          19
Monteverdi

Menu Learning > SVM classification (3/3)




                                           orfeo-toolbox.org
                                                          20
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
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
Monteverdi – Feature extraction

Filtering
   Feature Extraction (1/4)




                                                  orfeo-toolbox.org
                                                                 23
Monteverdi – Feature extraction

Filtering
   Feature Extraction (2/4)




                                                  orfeo-toolbox.org
                                                                 24
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
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
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
Monteverdi




Thank you for your attention !




                                 orfeo-toolbox.org
                                                28

More Related Content

PDF
Tutorial OTB/Monteverdi Part 1
 
PDF
Tutorial OTB/Monteverdi Part 2
 
PDF
Madagascar2011 - 05 - Monteverdi first steps
 
PDF
Madagascar2011 - 06 - OTB geometry processing
 
PDF
Presentation of the Monteverdi application
 
PDF
The Orfeo Toolbox remote sensing image processing software
PDF
Madagascar2011 - 10 - OTB Object Based Image Analysis
 
PDF
Madagascar2011 - 02 - Présentation OTB
 
Tutorial OTB/Monteverdi Part 1
 
Tutorial OTB/Monteverdi Part 2
 
Madagascar2011 - 05 - Monteverdi first steps
 
Madagascar2011 - 06 - OTB geometry processing
 
Presentation of the Monteverdi application
 
The Orfeo Toolbox remote sensing image processing software
Madagascar2011 - 10 - OTB Object Based Image Analysis
 
Madagascar2011 - 02 - Présentation OTB
 

Similar to Madagascar2011 - 08 - OTB segmentation and classification (13)

PDF
Madagascar2011 - 09 OTB Change detection framework
 
PDF
Monteverdi 2.0 - Remote sensing software for Pleiades images analysis
 
PDF
Presentation of the Orfeo Toolbox
 
PDF
Madagascar2011 - 03 - Présentation Monteverdi
 
PDF
OTB-FOSS4G-2010
 
PDF
Pragmatic Remote Sensing - IGARSS 2010
 
PDF
Pragmatic remote sensing handout
 
PDF
General presentation of OTB
 
PDF
Monteverdi - Remote sensing software from educational to operational context
 
PDF
Teaching Remote Sensing with OTB Applications & Monterverdi (and a little of ...
 
PDF
Orfeo ToolBox workshop at FOSS4G Europe 2015
 
PPTX
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
PDF
IRJET - Automatic Methods for Classi?cation of Plant Diseases using Back...
Madagascar2011 - 09 OTB Change detection framework
 
Monteverdi 2.0 - Remote sensing software for Pleiades images analysis
 
Presentation of the Orfeo Toolbox
 
Madagascar2011 - 03 - Présentation Monteverdi
 
OTB-FOSS4G-2010
 
Pragmatic Remote Sensing - IGARSS 2010
 
Pragmatic remote sensing handout
 
General presentation of OTB
 
Monteverdi - Remote sensing software from educational to operational context
 
Teaching Remote Sensing with OTB Applications & Monterverdi (and a little of ...
 
Orfeo ToolBox workshop at FOSS4G Europe 2015
 
A DEEP LEARNING APPROACH FOR SEMANTIC SEGMENTATION IN BRAIN TUMOR IMAGES
IRJET - Automatic Methods for Classi?cation of Plant Diseases using Back...
Ad

More from otb (19)

PDF
Ice: lightweight, efficient rendering for remote sensing images
 
ODP
Développement des chaînes de traitement d'images GEOSUD
 
PDF
ONLINE IMAGE PROCESSING WITH ORFEOTOOLBOX WPS
 
PDF
Build OTB with the SuperBuild
 
PDF
ORFEO ToolBox Project Steering committee
 
PDF
OTB modular architecture
 
PDF
0 intro
 
PDF
ORFEO ToolBox at CS-SI From research to operational applications
 
PDF
Usages of OTB at SERTIT OTB Users meeting and hackfest 2015
 
PDF
USING ORFEO TOOLBOX A GROWING COMPETENCE IN A COLLABORATIVE ENVIRONMENT
 
PPTX
Monitoring tropical forest cover Activities of ONFI in remote sensing
 
PDF
Présentation générale de l'Orfeo ToolBox (12.2014)
 
PDF
OTB: logiciel libre de traitement d'images satellites
 
PDF
Présentation de l'ORFEO ToolBox au FROG2013
 
PDF
Madagascar2011 - 07 - OTB radiometry processing
 
PDF
Madagascar2011 - 04 - Présentation configuration pratical work
 
PDF
AUF 11 - 02 Geometrie
 
PDF
AUF 11 - 03 Radiometrie
 
PDF
AUF 11 - 04 Primitives
 
Ice: lightweight, efficient rendering for remote sensing images
 
Développement des chaînes de traitement d'images GEOSUD
 
ONLINE IMAGE PROCESSING WITH ORFEOTOOLBOX WPS
 
Build OTB with the SuperBuild
 
ORFEO ToolBox Project Steering committee
 
OTB modular architecture
 
0 intro
 
ORFEO ToolBox at CS-SI From research to operational applications
 
Usages of OTB at SERTIT OTB Users meeting and hackfest 2015
 
USING ORFEO TOOLBOX A GROWING COMPETENCE IN A COLLABORATIVE ENVIRONMENT
 
Monitoring tropical forest cover Activities of ONFI in remote sensing
 
Présentation générale de l'Orfeo ToolBox (12.2014)
 
OTB: logiciel libre de traitement d'images satellites
 
Présentation de l'ORFEO ToolBox au FROG2013
 
Madagascar2011 - 07 - OTB radiometry processing
 
Madagascar2011 - 04 - Présentation configuration pratical work
 
AUF 11 - 02 Geometrie
 
AUF 11 - 03 Radiometrie
 
AUF 11 - 04 Primitives
 
Ad

Recently uploaded (20)

PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Architecture types and enterprise applications.pdf
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Getting Started with Data Integration: FME Form 101
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Tartificialntelligence_presentation.pptx
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
OMC Textile Division Presentation 2021.pptx
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Architecture types and enterprise applications.pdf
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Getting started with AI Agents and Multi-Agent Systems
Group 1 Presentation -Planning and Decision Making .pptx
Getting Started with Data Integration: FME Form 101
TLE Review Electricity (Electricity).pptx
Developing a website for English-speaking practice to English as a foreign la...
Tartificialntelligence_presentation.pptx
A comparative study of natural language inference in Swahili using monolingua...
Enhancing emotion recognition model for a student engagement use case through...
Final SEM Unit 1 for mit wpu at pune .pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf

Madagascar2011 - 08 - OTB segmentation and classification

  • 1. Orfeo Toolbox Segmentation, classification Stéphane MAY stephane.may@cnes.fr orfeo-toolbox.org 1
  • 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
  • 3. Monteverdi – Mean-shift Filtering > Meanshift clustering orfeo-toolbox.org 3
  • 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
  • 5. Orfeo toolbox - otbSegmentationApplication otbSegmentationApplication orfeo-toolbox.org 5
  • 6. otbSegmentationApplication (1/8) orfeo-toolbox.org 6
  • 7. otbSegmentationApplication (2/8) orfeo-toolbox.org 7
  • 8. otbSegmentationApplication (3/8) orfeo-toolbox.org 8
  • 9. otbSegmentationApplication (4/8) orfeo-toolbox.org 9
  • 10. otbSegmentationApplication (5/8) orfeo-toolbox.org 10
  • 11. otbSegmentationApplication (6/8) orfeo-toolbox.org 11
  • 12. otbSegmentationApplication (7/8) orfeo-toolbox.org 12
  • 13. otbSegmentationApplication (8/8) orfeo-toolbox.org 13
  • 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
  • 15. Monteverdi – Classification modules Menu Learning SVM classification K-Means clustering orfeo-toolbox.org 15
  • 16. Monteverdi Menu Learning > K-means orfeo-toolbox.org 16
  • 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
  • 18. Monteverdi Menu Learning > SVM classification (1/3) orfeo-toolbox.org 18
  • 19. Monteverdi Menu Learning > SVM classification (2/3) orfeo-toolbox.org 19
  • 20. Monteverdi Menu Learning > SVM classification (3/3) orfeo-toolbox.org 20
  • 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
  • 23. Monteverdi – Feature extraction Filtering Feature Extraction (1/4) orfeo-toolbox.org 23
  • 24. Monteverdi – Feature extraction Filtering Feature Extraction (2/4) orfeo-toolbox.org 24
  • 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
  • 28. Monteverdi Thank you for your attention ! orfeo-toolbox.org 28