mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #8098 from chrizandr:Tree_load_Wrapper
Add wrappers for load functions for DTrees and Boost classifiers
This commit is contained in:
@@ -507,6 +507,11 @@ Ptr<Boost> Boost::create()
|
||||
return makePtr<BoostImpl>();
|
||||
}
|
||||
|
||||
Ptr<Boost> Boost::load(const String& filepath, const String& nodeName)
|
||||
{
|
||||
return Algorithm::load<Boost>(filepath, nodeName);
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
/* End of file. */
|
||||
|
||||
@@ -1941,6 +1941,12 @@ Ptr<DTrees> DTrees::create()
|
||||
return makePtr<DTreesImpl>();
|
||||
}
|
||||
|
||||
Ptr<DTrees> DTrees::load(const String& filepath, const String& nodeName)
|
||||
{
|
||||
return Algorithm::load<DTrees>(filepath, nodeName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user