fixed #2159
This commit is contained in:
parent
7c211796e7
commit
994f8710f3
@ -105,7 +105,7 @@ bool EM::trainE(InputArray samples,
|
||||
Mat means0 = _means0.getMat(), weights0 = _weights0.getMat();
|
||||
|
||||
setTrainData(START_E_STEP, samplesMat, 0, !_means0.empty() ? &means0 : 0,
|
||||
!_covs0.empty() ? &covs0 : 0, _weights0.empty() ? &weights0 : 0);
|
||||
!_covs0.empty() ? &covs0 : 0, !_weights0.empty() ? &weights0 : 0);
|
||||
return doTrain(START_E_STEP, logLikelihoods, labels, probs);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user