@@ -1137,6 +1137,17 @@ class CV_EXPORTS_W DTrees : public StatModel
1137
1137
file using Algorithm::load\<DTrees\>(filename).
1138
1138
*/
1139
1139
CV_WRAP static Ptr<DTrees> create ();
1140
+
1141
+ /* * @brief Loads and creates a serialized DTrees from a file
1142
+ *
1143
+ * Use DTree::save to serialize and store an DTree to disk.
1144
+ * Load the DTree from this file again, by calling this function with the path to the file.
1145
+ * Optionally specify the node for the file containing the classifier
1146
+ *
1147
+ * @param filepath path to serialized DTree
1148
+ * @param nodeName name of node containing the classifier
1149
+ */
1150
+ CV_WRAP static Ptr<DTrees> load (const String& filepath , const String& nodeName = String());
1140
1151
};
1141
1152
1142
1153
/* ***************************************************************************************\
@@ -1251,6 +1262,17 @@ class CV_EXPORTS_W Boost : public DTrees
1251
1262
/* * Creates the empty model.
1252
1263
Use StatModel::train to train the model, Algorithm::load\<Boost\>(filename) to load the pre-trained model. */
1253
1264
CV_WRAP static Ptr<Boost> create ();
1265
+
1266
+ /* * @brief Loads and creates a serialized Boost from a file
1267
+ *
1268
+ * Use Boost::save to serialize and store an RTree to disk.
1269
+ * Load the Boost from this file again, by calling this function with the path to the file.
1270
+ * Optionally specify the node for the file containing the classifier
1271
+ *
1272
+ * @param filepath path to serialized Boost
1273
+ * @param nodeName name of node containing the classifier
1274
+ */
1275
+ CV_WRAP static Ptr<Boost> load (const String& filepath , const String& nodeName = String());
1254
1276
};
1255
1277
1256
1278
/* ***************************************************************************************\
0 commit comments