title: Opencv Logistic Regression load failed
body: <p>I am using opencv's <code>cv::ml::LogisticRegression</code> class and have serialized it and saved it to file using the <code>cv::Algorithm::save</code> method, and am trying to load the file back into a <code>Ptr&lt;LogisticRegression&gt;</code> using <code>cv::ml::LogisticRegression::load</code>, as described in the <a href="http://docs.opencv.org/trunk/d6/df9/classcv_1_1ml_1_1LogisticRegression.html#af3a20a4bc0f92ca2c5c1a2e46713b2f0" rel="nofollow noreferrer">documentation</a>, my save code looks like this:</p>
  
  <pre><code>Ptr&lt;cv::ml::LogisticRegression&gt; logisReg = logisticRegression(features_train, labels_train);
  logisReg-&gt;save("mFileName");
  </code></pre>
  
  <p>And load code (different place)</p>
  
  <pre><code>Ptr&lt;cv::ml::LogisticRegression&gt; logisReg = cv::ml::LogisticRegression::load("mFileName", "Logisitic Regression Classifier");
  </code></pre>
  
  <p>The save code works fine, and the serialized file content makes sense (plain text). However, when I tried to compile the load it, I got this error:</p>
  
  <pre><code>main.cpp:97:5: error: no matching function for call to 'load'
      cv::ml::LogisticRegression::load("logisReg.auracle", "Logisitic Regression Classifier");
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/opt/opencv3/include/opencv2/core.hpp:3074:44: note: candidate template ignored: couldn't infer template argument '_Tp'
      template&lt;typename _Tp&gt; static Ptr&lt;_Tp&gt; load(const String&amp; filename, const String&amp; objname=String())
                                         ^
  1 error generated.
  make: *** [main.o] Error 1
  </code></pre>