Return uncompressed support vectors for getSupportVectors on linear SVM (Bug #4096)

This commit is contained in:
Deanna Hood
2015-04-18 21:32:29 -04:00
committed by Vadim Pisarevsky
parent 544990e377
commit 0d706f6796
4 changed files with 109 additions and 5 deletions

View File

@@ -675,11 +675,19 @@ public:
/** @brief Retrieves all the support vectors
The method returns all the support vector as floating-point matrix, where support vectors are
The method returns all the support vectors as a floating-point matrix, where support vectors are
stored as matrix rows.
*/
CV_WRAP virtual Mat getSupportVectors() const = 0;
/** @brief Retrieves all the uncompressed support vectors of a linear %SVM
The method returns all the uncompressed support vectors of a linear %SVM that the compressed
support vector, used for prediction, was derived from. They are returned in a floating-point
matrix, where the support vectors are stored as matrix rows.
*/
CV_WRAP Mat getUncompressedSupportVectors() const;
/** @brief Retrieves the decision function
@param i the index of the decision function. If the problem solved is regression, 1-class or