Skip to content

Commit

Permalink
Update ml.hpp
Browse files Browse the repository at this point in the history
misplaced CV_WRAP statement lead to not exposing EM::getCovs() to python/java/matlab wrappers

add a CV_OUT to return the covs properly
  • Loading branch information
berak committed Jul 25, 2015
1 parent 11c3fa5 commit d9148ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ml/include/opencv2/ml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ class CV_EXPORTS_W EM : public StatModel
Returns vector of covariation matrices. Number of matrices is the number of gaussian mixtures,
each matrix is a square floating-point matrix NxN, where N is the space dimensionality.
*/
virtual void getCovs(std::vector<Mat>& covs) const = 0;
CV_WRAP virtual void getCovs(CV_OUT std::vector<Mat>& covs) const = 0;

/** @brief Returns a likelihood logarithm value and an index of the most probable mixture component
for the given sample.
Expand All @@ -804,7 +804,7 @@ class CV_EXPORTS_W EM : public StatModel
the sample. First element is an index of the most probable mixture component for the given
sample.
*/
CV_WRAP CV_WRAP virtual Vec2d predict2(InputArray sample, OutputArray probs) const = 0;
CV_WRAP virtual Vec2d predict2(InputArray sample, OutputArray probs) const = 0;

/** @brief Estimate the Gaussian mixture parameters from a samples set.
Expand Down

0 comments on commit d9148ea

Please sign in to comment.