[GIS] QGIS – Orfeo Toolbox: how to run support vector machine classification

classificationorfeo-toolboxqgis

I am trying to classify SPOT images with the support vector machine classification in Orfeo Toolbox with QGIS. I installed Orfeo Toolbox with OSGeo4W. I have made a ROI image with 600 training samples (2 classes), and used TrainImagesClassifier (svm). However when I use Image Classification to classify the image with the svm, it gives me an error. The log only says:

the following layers were not correctly generated: Output image,
Confidence map

I have tried using different images, leaving it to save to temporary file, and changing the save directory but nothing works.

Best Answer

the confidence map parameter is not available for the SVM algorithm. You can output it if you use the random forests (rf) for instance.

For SVM you need to disable the option. I know that the interface is not clear for now, there should be improvments of OTB QGIS integration in 2018.

Don't hesitate if you've got any questions.

Thanks again for your feedback.

Related Question