1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

RTrees: Add wrapper for RTrees_load method to enable loading trained RTrees

This commit is contained in:
chrizandr
2017-01-13 01:49:49 +05:30
parent 45f0cf0d41
commit e3ec3566d9
2 changed files with 17 additions and 1 deletions
+6 -1
View File
@@ -41,7 +41,6 @@
//M*/
#include "precomp.hpp"
namespace cv {
namespace ml {
@@ -422,6 +421,12 @@ Ptr<RTrees> RTrees::create()
return makePtr<RTreesImpl>();
}
//Function needed for Python and Java wrappers
Ptr<RTrees> RTrees::load(const String& filepath, const String& nodeName)
{
return Algorithm::load<RTrees>(filepath, nodeName);
}
}}
// End of file.