fixed ABI incompatibilities as proposed by alalek

related to issue 4969
fixes issue 5891
fixes issue 5922
This commit is contained in:
Christoph Spörk
2016-01-07 08:00:01 +01:00
parent a7aa198b4c
commit 6c8bc6a25b
2 changed files with 11 additions and 6 deletions

View File

@@ -720,9 +720,14 @@ public:
find the best parameters for your problem, it can be done with SVM::trainAuto. */
CV_WRAP static Ptr<SVM> create();
CV_WRAP virtual void read( const FileNode& fn ) = 0;
CV_WRAP static Ptr<SVM> load(const String& fs);
/** @brief Loads and creates a serialized svm from a file
*
* Use SVM::save to serialize and store an SVM to disk.
* Load the SVM from this file again, by calling this function with the path to the file.
*
* @param fs Filename
*/
CV_WRAP static Ptr<SVM> load(const String& filepath);
};
/****************************************************************************************\