Hi,

I think this feature isn't so far away. At the moment, in OTB classification framework, once we have trained a model, it is saved in a text file. The classifier called next opens the file, load the corresponding model, and use it. Thanks to OpenCV, we support different classifier model (such as RF). The export format of the model is defined by OpenCV.

It means that if you manage to store your model using the right format, it can be imported and used in OTB.

You can check here :
http://docs.opencv.org/modules/ml/doc/random_trees.html?highlight=rtrees#cvrtrees
http://docs.opencv.org/modules/ml/doc/statistical_models.html

Regards,
Guillaume

Le 11/12/2014 04:55, dcd a écrit :

I'm back and using OTB again and I was wondering if there's a way to use models developed in R, with their counterpart classifier in OTB? In other words, if I've trained a RF model in R, is there some way to export that model to OTB's RF classifier?

I'm guessing it's not possible (yet), but it would be a killer feature as it would provide the best of two worlds: OTB's raw processing power and speed with R's sophisticated model building abilities.

I'm not sure how the best way would be to go about doing this, but the following links might be of interest:

Export RF model to SQL
https://gist.github.com/shanebutler/96f0e78a02c84cdcf558

Random Forest: PMML Export and ADAPA Support
https://support.zementis.com/entries/21214261-Random-Forest-PMML-Export-and-ADAPA-Support

Cheers,

Dennis

--
--
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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


--
<www.c-s.fr>      *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information* <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département APPLICATIONS*

*CS Systèmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
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.

Reply via email to