Commit e7b81688 authored by Andrey Kamaev's avatar Andrey Kamaev

Revert "yet another portion of changes towards the binary compatibility"

This reverts commit 618fbf55.
parent 18ab16db
...@@ -916,6 +916,9 @@ namespace cv ...@@ -916,6 +916,9 @@ namespace cv
// Trains a FaceRecognizer. // Trains a FaceRecognizer.
CV_WRAP virtual void train(InputArrayOfArrays src, InputArray labels) = 0; CV_WRAP virtual void train(InputArrayOfArrays src, InputArray labels) = 0;
// Updates a FaceRecognizer.
CV_WRAP virtual void update(InputArrayOfArrays src, InputArray labels);
// Gets a prediction from a FaceRecognizer. // Gets a prediction from a FaceRecognizer.
virtual int predict(InputArray src) const = 0; virtual int predict(InputArray src) const = 0;
...@@ -934,8 +937,6 @@ namespace cv ...@@ -934,8 +937,6 @@ namespace cv
// Deserializes this object from a given cv::FileStorage. // Deserializes this object from a given cv::FileStorage.
virtual void load(const FileStorage& fs) = 0; virtual void load(const FileStorage& fs) = 0;
// Updates a FaceRecognizer.
CV_WRAP virtual void update(InputArrayOfArrays src, InputArray labels);
}; };
CV_EXPORTS_W Ptr<FaceRecognizer> createEigenFaceRecognizer(int num_components = 0, double threshold = DBL_MAX); CV_EXPORTS_W Ptr<FaceRecognizer> createEigenFaceRecognizer(int num_components = 0, double threshold = DBL_MAX);
......
...@@ -505,7 +505,7 @@ public: ...@@ -505,7 +505,7 @@ public:
CvParamGrid degreeGrid = CvSVM::get_default_grid(CvSVM::DEGREE), CvParamGrid degreeGrid = CvSVM::get_default_grid(CvSVM::DEGREE),
bool balanced=false); bool balanced=false);
CV_WRAP virtual float predict( const cv::Mat& sample, bool returnDFVal=false ) const; CV_WRAP virtual float predict( const cv::Mat& sample, bool returnDFVal=false ) const;
CV_WRAP_AS(predict_all) void predict( cv::InputArray samples, cv::OutputArray results ) const; CV_WRAP_AS(predict_all) virtual void predict( cv::InputArray samples, cv::OutputArray results ) const;
CV_WRAP virtual int get_support_vector_count() const; CV_WRAP virtual int get_support_vector_count() const;
virtual const float* get_support_vector(int i) const; virtual const float* get_support_vector(int i) const;
...@@ -2080,6 +2080,8 @@ protected: ...@@ -2080,6 +2080,8 @@ protected:
CvMat* var_idx_out; // mat CvMat* var_idx_out; // mat
CvMat* var_types_out; // mat CvMat* var_types_out; // mat
int header_lines_number;
int response_idx; int response_idx;
int train_sample_count; int train_sample_count;
...@@ -2093,8 +2095,6 @@ protected: ...@@ -2093,8 +2095,6 @@ protected:
int* sample_idx; // data of train_sample_idx and test_sample_idx int* sample_idx; // data of train_sample_idx and test_sample_idx
cv::RNG* rng; cv::RNG* rng;
int header_lines_number;
}; };
......
...@@ -597,14 +597,13 @@ public: ...@@ -597,14 +597,13 @@ public:
// evaluate specified ROI and return confidence value for each location // evaluate specified ROI and return confidence value for each location
void detectROI(const cv::Mat& img, const vector<cv::Point> &locations, virtual void detectROI(const cv::Mat& img, const vector<cv::Point> &locations,
CV_OUT std::vector<cv::Point>& foundLocations, CV_OUT std::vector<cv::Point>& foundLocations, CV_OUT std::vector<double>& confidences,
CV_OUT std::vector<double>& confidences,
double hitThreshold = 0, cv::Size winStride = Size(), double hitThreshold = 0, cv::Size winStride = Size(),
cv::Size padding = Size()) const; cv::Size padding = Size()) const;
// evaluate specified ROI and return confidence value for each location in multiple scales // evaluate specified ROI and return confidence value for each location in multiple scales
void detectMultiScaleROI(const cv::Mat& img, virtual void detectMultiScaleROI(const cv::Mat& img,
CV_OUT std::vector<cv::Rect>& foundLocations, CV_OUT std::vector<cv::Rect>& foundLocations,
std::vector<DetectionROI>& locations, std::vector<DetectionROI>& locations,
double hitThreshold = 0, double hitThreshold = 0,
......
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