1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Wrappers for load methods of EM, LR, SVMSGD and Normal Bayes Classifier

This commit is contained in:
chrizandr
2017-01-29 18:51:55 +05:30
parent aa5caf83f6
commit 519fbdb8ab
5 changed files with 66 additions and 0 deletions
+6
View File
@@ -134,6 +134,12 @@ Ptr<SVMSGD> SVMSGD::create()
return makePtr<SVMSGDImpl>();
}
Ptr<SVMSGD> SVMSGD::load(const String& filepath, const String& nodeName)
{
return Algorithm::load<SVMSGD>(filepath, nodeName);
}
void SVMSGDImpl::normalizeSamples(Mat &samples, Mat &average, float &multiplier)
{
int featuresCount = samples.cols;