class cv::ml::SVM do not have member called Params
<p>I was learning opencv3 official SVM example, encountered this problem.
Here is the code.</p>

<pre><code>    #include &lt;opencv2/core.hpp&gt;
    #include &lt;opencv2/imgproc.hpp&gt;
    #include "opencv2/imgcodecs.hpp"
    #include &lt;opencv2/highgui.hpp&gt;
    #include &lt;opencv2/ml.hpp&gt;

    using namespace cv;
    using namespace cv::ml;

    ...[code]
        // Set up SVM's parameters
        ml::SVM::Params params;
        params.svmType = SVM::C_SVC;
        params.kernelType = SVM::LINEAR;
        params.termCrit = TermCriteria(TermCriteria::MAX_ITER, 100, 1e-6);
    ...[code]

}
</code></pre>

<p>It suggests the following error:
<br>
<strong><em>class cv::ml::SVM do not have member called Params</em></strong></p>

<p>I don't know where is the problem, please help~~</p>