Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
2bac66a1
Commit
2bac66a1
authored
Jan 24, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8004 from chrizandr:RTrees_load_wrapper
parents
ff5eaadf
e3ec3566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
ml.hpp
modules/ml/include/opencv2/ml.hpp
+11
-0
rtrees.cpp
modules/ml/src/rtrees.cpp
+6
-1
No files found.
modules/ml/include/opencv2/ml.hpp
View file @
2bac66a1
...
...
@@ -1169,6 +1169,17 @@ public:
Algorithm::load to load the pre-trained model.
*/
CV_WRAP
static
Ptr
<
RTrees
>
create
();
/** @brief Loads and creates a serialized RTree from a file
*
* Use RTree::save to serialize and store an RTree to disk.
* Load the RTree from this file again, by calling this function with the path to the file.
* Optionally specify the node for the file containing the classifier
*
* @param filepath path to serialized RTree
* @param nodeName name of node containing the classifier
*/
CV_WRAP
static
Ptr
<
RTrees
>
load
(
const
String
&
filepath
,
const
String
&
nodeName
=
String
());
};
/****************************************************************************************\
...
...
modules/ml/src/rtrees.cpp
View file @
2bac66a1
...
...
@@ -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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment