From d9148ea6041578f12d942d7d36b3eb251e8c2828 Mon Sep 17 00:00:00 2001 From: berak Date: Thu, 23 Jul 2015 18:38:18 +0200 Subject: [PATCH] Update ml.hpp misplaced CV_WRAP statement lead to not exposing EM::getCovs() to python/java/matlab wrappers add a CV_OUT to return the covs properly --- modules/ml/include/opencv2/ml.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ml/include/opencv2/ml.hpp b/modules/ml/include/opencv2/ml.hpp index d0d2c33613..fd491e4f6e 100644 --- a/modules/ml/include/opencv2/ml.hpp +++ b/modules/ml/include/opencv2/ml.hpp @@ -790,7 +790,7 @@ public: 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& covs) const = 0; + CV_WRAP virtual void getCovs(CV_OUT std::vector& covs) const = 0; /** @brief Returns a likelihood logarithm value and an index of the most probable mixture component for the given sample. @@ -804,7 +804,7 @@ public: 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.