Tutorial OTB/Monteverdi Part 1

8,827 views
8,470 views

Published on

Tutorial on OTB/Monteverdi Part 1

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,827
On SlideShare
0
From Embeds
0
Number of Embeds
2,766
Actions
Shares
0
Downloads
233
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Tutorial OTB/Monteverdi Part 1

  1. 1. Use cases with the Orfeo Toolbox framework Monteverdi orfeo-toolbox.org 1
  2. 2. Use case 1 : open an image, and discover the viewer Menu File > Open .//theme2/IM2/Im2_C_02112006_169_388/372596101/SPVIEW01 /IMAGERY.TIF Menu Visualization > Viewer (Alternative – right click on the module in the pipeline) Discover the viewer functionalities orfeo-toolbox.org 2
  3. 3. Monteverdi – Viewer Visualization Viewer (1/4) orfeo-toolbox.org 3
  4. 4. Monteverdi - Viewer Visualization Viewer (2/4) orfeo-toolbox.org 4
  5. 5. Monteverdi - Viewer Visualization Viewer (3/4) orfeo-toolbox.org 5
  6. 6. Monteverdi - Viewer Visualization Viewer (4/4) orfeo-toolbox.org 6
  7. 7. Use case 2 : create a pipeline, save an image Menu File > Open ./theme2/IM2/Im2_C_02112006_169_388/372596101/SPVIEW01/ IMAGERY.TIF Menu Visualization > Viewer (lock the pipeline !) File > Extract ROI from dataset Positions (x,y) = [1600,1000], sizeX=2000 (w), sizeY=1500 (h) File > Save dataset File > Save dataset (advanced) Save only Channel 1 in Float type Seel also : Right click on pipeline module ExtractROI > Show module Cache dataset orfeo-toolbox.org 7
  8. 8. Monteverdi - ROI File > Extract ROI orfeo-toolbox.org 8
  9. 9. Monteverdi – Save dataset File > Save dataset (advanced) Choice of data type Choice of output channels orfeo-toolbox.org 9
  10. 10. Use case 3 : threshold an image Menu File > Open ./theme2/IM2/extraitIm2_C/Im2_c_extrait.tif Menu Filtering > Threshold Generic Threshold / Threshold Above / Change Lower threshold Generic Threshold / Threshold Below / Change Upper Threshold ➢ Role of outside value ➢ Role of alpha (alpha blending) : alpha=0 Generic Threshold / Threshold outside / Change upper & lower th. Binary threshold / Lower & Upper threshold / Outside & Inside values orfeo-toolbox.org 10
  11. 11. Monteverdi - Threshold Filtering Threshold orfeo-toolbox.org 11
  12. 12. Use case 4 : segmentation with mean-shift Menu File > Open ./data_tp/theme2/IM2/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_V3.0.pdf p 174 orfeo-toolbox.org 12
  13. 13. Monteverdi – Mean-shift Filtering Meanshift clustering orfeo-toolbox.org 13
  14. 14. Use case 5 : Feature extraction (1/2) Menu File > Open ./theme2/IM2/extraitIm2_C/Im2_c_extrait.tif Menu Filtering > Feature extraction Test the following features (See OTB-Software-Guide_V3.0.pdf for technical details on algorithms) ➢ Edge detection : Touzi ➢ Spectral angle : choose one vegetation pixel ➢ Variance ➢ Mean ➢ Rec. gradient ➢ Morphology > Morphology opening ➢ Edge density > Sobel ➢ Original data (=> no need to concatenate channels after filtering) orfeo-toolbox.org 14
  15. 15. Use case 5 : Feature extraction (2/2) Menu Filtering > Feature extraction Test the following features (See OTB-Software-Guide_V3.0.pdf for technical details on algorithms) : ➢ Radiometric indexes Vegetation • NDVI, RVI, PVI, etc Soil • BI2 Built up • ISU Further work : ➢ Rename output image channels ➢ Save your result ➢ Build Mean, variance image on a Touzi image orfeo-toolbox.org 15
  16. 16. Monteverdi – Feather extraction Filtering Feature Extraction (1/2) orfeo-toolbox.org 16
  17. 17. Monteverdi – Feather extraction Filtering Feature Extraction (2/2) orfeo-toolbox.org 17
  18. 18. Monteverdi – Feather extraction Solution : mean, variance over Touzi image Reader Feature Extraction (Reader0) > Touzi Feature Extraction (FeatureExtraction1) > Mean, Variance Save your result orfeo-toolbox.org 18
  19. 19. Use case 6 : concatenate your results Menu File > Open ./theme1/IM2/Extraits/Ext_IM2_04102008_10mC.tif Menu Filtering > Feature extraction > NDVI Menu File > Concatenate Image Add Reader0 → Channel 1 Add Reader0 → Channel 2 Add FeatureExtraction1 → OutputImage View the result orfeo-toolbox.org 19
  20. 20. Monteverdi – Concatenate images File > Concatenate images orfeo-toolbox.org 20
  21. 21. Use case 7 : supervised classification with SVM Menu File > Open ./theme2/IM2/extraitIm2_C/Im2_c_extrait.tif Menu Learning > SVM Classification Create several classes (4-5) ➢ Edit names ➢ Change colors ➢ Select polygons Learn Validate Display Further work : Same case with concatenated NDVI channel orfeo-toolbox.org 21
  22. 22. Monteverdi Menu Learning > SVM classification (1/3) orfeo-toolbox.org 22
  23. 23. Monteverdi Menu Learning > SVM classification (2/3) orfeo-toolbox.org 23
  24. 24. Monteverdi Menu Learning > SVM classification (3/3) orfeo-toolbox.org 24
  25. 25. Use case 8 : unsupervised clustering with k-means Menu File > Open ./theme2/IM2/extraitIm2_C/Im2_c_extrait.tif Menu Learning > k-means clustering (doc OTBSoftwareGuide_V3.0.pdf p 448) Training 15% Number of classes : 5 Iteration number : 1 Convergence : 0.0001 Further work : Compare with SVM supervised classification orfeo-toolbox.org 25
  26. 26. Monteverdi Menu Learning > K-means orfeo-toolbox.org 26
  27. 27. Use case 9 : orthorectify an image (Spot 5 level 1A) without DEM Menu File > Open ./reunion_S5/thr1a/imagery.tif Menu Geometry > Orthorectification Size X : 220, Size Y : 200 (try larger size with powerful computers) Spacing X : 10, Spacing Y : -10 (m) Longitude : -55.4, Latitude : -21.0 UTM / Linear (=> Module created in pipeline) Visualization > Viewer (Orthorectifcation0) > Click on Streamed / Cache (This launches the orthorectification). “Cached” : click on OK to view the image orfeo-toolbox.org 27
  28. 28. Monteverdi Menu Geometry > Orthorectification (1/2) orfeo-toolbox.org 28
  29. 29. Monteverdi Menu Geometry > Orthorectification (2/2) orfeo-toolbox.org 29
  30. 30. Use case 10 : orthorectify an image (Spot 5 level 1A) with DEM Menu File > Open ./reunion_S5/thr1a/imagery.tif Menu Geometry > Orthorectification Size X : 220, Size Y : 200 (try larger size with powerful computers) Spacing X : 10, Spacing Y : -10 (m) Longitude : -55.4, Latitude : -21.0 UTM / Linear DEM : enter the directory where .hgt files are Visualization > Viewer (Orthorectifcation0) > Click on Streamed / Cache (This launches the orthorectification). “Cached” : click on OK to view the image orfeo-toolbox.org 30
  31. 31. Use case 11 : Superimpose XS image over THR one (1/2) Menu Geometry > Superimpose two images Combination of geometric models of the two images (note : works with images with geometric model) ➢ Image to be superimposed : use of the direct geometric model to build Longitude/Latitude projection ➢ Combination with the inverse model of the reference image. ➢ Reprojection orfeo-toolbox.org 31
  32. 32. Use case 11 : Superimpose XS image over THR one (2/2) Menu File > Open ./reunion_S5/thr1a/imagery.tif Menu Geometry > Orthorectification Size X : 220, Size Y : 200 Spacing X : 10, Spacing Y : -10 (m) Longitude : -55.4, Latitude : -21.0 UTM / Linear Menu Geometry > Superimpose two images Image to reproject : J1A / XS image Reference Image : ortho of THR1A / Panchromatic image Choose the same DEM model Visualization > Viewer (Reprojected Image) > Stream / Caching... / Cached orfeo-toolbox.org 32
  33. 33. Monteverdi – Superimpose two images Menu Geometry > Superimpose two images orfeo-toolbox.org 33
  34. 34. Monteverdi Thank you for your attention ! orfeo-toolbox.org 34

×