Commit c8afe7ef authored by Andrey Pavlenko's avatar Andrey Pavlenko Committed by OpenCV Buildbot

Merge pull request #1320 from mbarnach:svm_hog

parents 4fbd2ef8 089b8e2f
...@@ -518,6 +518,8 @@ public: ...@@ -518,6 +518,8 @@ public:
virtual CvSVMParams get_params() const { return params; } virtual CvSVMParams get_params() const { return params; }
CV_WRAP virtual void clear(); CV_WRAP virtual void clear();
virtual const CvSVMDecisionFunc* get_decision_function() const { return decision_func; }
static CvParamGrid get_default_grid( int param_id ); static CvParamGrid get_default_grid( int param_id );
virtual void write( CvFileStorage* storage, const char* name ) const; virtual void write( CvFileStorage* storage, const char* name ) const;
......
...@@ -1245,7 +1245,6 @@ const float* CvSVM::get_support_vector(int i) const ...@@ -1245,7 +1245,6 @@ const float* CvSVM::get_support_vector(int i) const
return sv && (unsigned)i < (unsigned)sv_total ? sv[i] : 0; return sv && (unsigned)i < (unsigned)sv_total ? sv[i] : 0;
} }
bool CvSVM::set_params( const CvSVMParams& _params ) bool CvSVM::set_params( const CvSVMParams& _params )
{ {
bool ok = false; bool ok = false;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment