mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
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
This commit is contained in:
parent
11c3fa527a
commit
d9148ea604
@ -790,7 +790,7 @@ public:
|
|||||||
Returns vector of covariation matrices. Number of matrices is the number of gaussian mixtures,
|
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.
|
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
|
/** @brief Returns a likelihood logarithm value and an index of the most probable mixture component
|
||||||
for the given sample.
|
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
|
the sample. First element is an index of the most probable mixture component for the given
|
||||||
sample.
|
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.
|
/** @brief Estimate the Gaussian mixture parameters from a samples set.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user