Hi, below the test command example given from command line application :
*Examples: otbcli_TrainImagesClassifier -io.il <http://io.il> QB_1_ortho.tif -io.vd VectorData_QB1.shp -io.imstat EstimateImageStatisticsQB1.xml -sample.mv <http://sample.mv> 100 -sample.mt <http://sample.mt> 100 -sample.vtr 0.5 -sample.edg false -sample.vfn Class -classifier libsvm -classifier.libsvm.k linear -classifier.libsvm.c 1 -classifier.libsvm.opt false -io.out svmModelQB1.txt -io.confmatout svmConfusionMatrixQB1.csv* -io.confmatout refers to confusion matirx output -io.out to the SVM model generated you should try to invert those two ouput Jonathan 2014/1/21 Sylvio L. <[email protected]> > Dear all, > > I working on OTB in QGIS. I try to classify an image with the module > TrainImagesClassifier (svm). > > First, I calculated image's statistics with "ComputeImagesStatistics". > Then I used this results in the module TrainImagesClassifier as this > (without error): > > otbcli_TrainImagesClassifier -io.il 11_Variance_S2.tif -io.vd > 4ClassifSVM.shp -io.imstat XML11.xml > -sample.mt -1 -sample.mv -1 -sample.vtr 0.5 -sample.vfn SVM -classifier > svm > -classifier.svm.m csvc -classifier.svm.k linear -classifier.svm.c 1 > -classifier.svm.opt true > -io.confmatout SVMMODELQB2.SVM -io.out SVMCONFUSIONMATRIXQB2.csv > > And finally, I launched the process to extract my image's classification : > otbcli_ImageClassifier -in 11_Variance_S2.tif -model SVMMODELQB2.SVM > -imstat XML11.xml > -ram 128 -out SVM_S2_11_.tif > > At the last step I get an error : > Application.logger (FATAL) Error when loading model SVMMODELQB2.SVM : > unsupported model type > > Yet, this is a file from OTB's module. I don't understand . > In the file *.svm : > --------------------------------------- > #Reference labels (rows):1,2,3 > #Produced labels (columns):1,2,3 > 36,0,1359401 > 0,0,1359042 > 81,0,1358023 > --------------------------------------- > > Could you help me, please ?! > Thank you in advance, for your answers ! > > -- > -- > Check the OTB FAQ at > http://www.orfeo-toolbox.org/FAQ.html > > You received this message because you are subscribed to the Google > Groups "otb-users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/otb-users?hl=en > --- > You received this message because you are subscribed to the Google Groups > "otb-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
