Skip to content

Commit

Permalink
Merge pull request opencv#5657 from tianzhi0549:fixed-the-type-incons…
Browse files Browse the repository at this point in the history
…istent-with-document
  • Loading branch information
vpisarev committed Dec 10, 2015
2 parents a0f6cd8 + f0434d6 commit bfe5ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ml/src/em.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class CV_EXPORTS EMImpl : public EM
{
bool needprobs = _outputs.needed();
Mat samples = _inputs.getMat(), probs, probsrow;
int ptype = CV_32F;
int ptype = CV_64F;
float firstres = 0.f;
int i, nsamples = samples.rows;

Expand All @@ -187,7 +187,7 @@ class CV_EXPORTS EMImpl : public EM

Vec2d predict2(InputArray _sample, OutputArray _probs) const
{
int ptype = CV_32F;
int ptype = CV_64F;
Mat sample = _sample.getMat();
CV_Assert(isTrained());

Expand Down

0 comments on commit bfe5ed2

Please sign in to comment.