Jordi Inglada <[email protected]> wrote: > > Monika Ruwaimana <[email protected]> wrote: >> >> Hi Manuel, >> >> Thank you for your response. >> >> I tried the ComputeOGRLayersFeaturesStatistics, but here is the GUI >> in the QGIS, Instead resulting on .xml file, it ask for input of >> .xml (XML file containing mean and variance of each feature). >> >> > > Hi, > > I don't use QGis nor the ComputeOGRLayersFeaturesStatistics, but maybe you > have to use the ComputeImagesStatistics application to generate this xml file? >
Well, looking again at the documentation here https://www.orfeo-toolbox.org//Applications/ComputeOGRLayersFeaturesStatistics.html Parameters [param] Name of the input shapefile (-inshp): Name of the input shapefile [param] XML file containing mean and variance of each feature. (-outstats): XML file containing mean and variance of each feature. [param] List of features to consider for statistics. (-feat): List of features to consider for statistics. [param] Load otb application from xml file (-inxml): Load otb application from xml file [param] Save otb application to xml file (-outxml): Save otb application to xml file There are 2 xml files (which are not mandatory for the application) which are meant to be used to save and load the application parameter for later executions. These are -inxml and -outxml. You don't need to used these parameters. The xml file you need to use is -outstats, which is indeed the file which will contain the mean and the variance of each feature. You have to give a name for this file, and the application will create the file and write to it. This file will then be used as input to the TrainOGRLayersClassifier and to the ImageClassifier applications so they can normalize the features. Jordi > Jordi > >> * >> >> I put segmentation results as "Input shapefile" and create XML file >> of each feature (class) using SCP (Semi-Automatic Classification >> Plugin) and input it as XML file. I was running and closed, but >> there is no >> output anywhere. >> >> >> * >> >> That is why I am confused because this application should give >> output on .xml. I am sorry because I do not really understand how to >> running this app via phyton, that is why I rely on QGIS gui. >> >> Any help is appreciated, thank you. >> >> Kind regards, >> Monika >> >> Le vendredi 10 juin 2016 18:20:49 UTC+2, Grizonnet Manuel a écrit : >> >> Hi Monika, >> >> if I understand the tutorial I think that the XML is created using the >> ComputeOGRLayersFeaturesStatistics application. >> >> You can find the documentation of it in the otb cookbook: >> >> https://www.orfeo-toolbox.org/CookBook/CookBooksu125.html#x157-9360004.9.1 >> >> Regards, >> >> Manuel >> >> Le 06/06/2016 18:04, Monika Ruwaimana a écrit : >> >> >> Hello OTB Team, >> >> Sorry for a stupid question, I am really new with this software, and using >> OTB toolbox in QGIS. >> >> I am trying to do automatic segments classification, following >> http://wiki.awf.forst.uni-goettingen.de/wiki/index.php/Object-based_classification_(Tutorial) >> >> * >> >> I managed to create the training shapefile (first red arrow). >> However, the next step is requiring "XML file containing mean and >> variance of each feature", but I cannot find the shapefile. I tried >> to create >> the xml. signature file using SCP classification module, but it is not >> working. >> >> My questions are: >> >> 1. When created vector file using "Join Attributes by Location", is a >> companion .xml file automatically created? >> 2. If not, how to created that "XML file containing mean and variance of >> each feature"? >> >> Thank you, hope you can help. >> >> [1]: >> http://wiki.awf.forst.uni-goettingen.de/wiki/index.php/Object-based_classification_(Tutorial) >> [2]: http://i.stack.imgur.com/9wDBq.png >> -- >> -- >> 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/d/optout. >> >> >> -- >> Manuel GRIZONNET >> >> -- > > -- -- -- 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/d/optout.
