1
0
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:
Alexander Alekhin
2017-01-30 17:25:23 +03:00
committed by GitHub
3 changed files with 33 additions and 0 deletions
+5
View File
@@ -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. */
+6
View 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);
}
}
}