Esempio n. 1
0
 internal static extern IntPtr CvEMDefaultCreate(int nclusters, MlEnum.EmCovarianMatrixType covMatType, ref MCvTermCriteria termcrit);
Esempio n. 2
0
 /// <summary>
 /// Create an Expectation Maximization model
 /// </summary>
 /// <param name="nclusters">The number of mixture components in the Gaussian mixture model. Use 5 for default.</param>
 /// <param name="covMatType">Constraint on covariance matrices which defines type of matrices</param>
 /// <param name="termcrit">The termination criteria of the EM algorithm. The EM algorithm can be terminated by the number of iterations termCrit.maxCount (number of M-steps) or when relative change of likelihood logarithm is less than termCrit.epsilon. Default maximum number of iterations is 100</param>
 public EM(int nclusters, MlEnum.EmCovarianMatrixType covMatType, MCvTermCriteria termcrit)
 {
     _ptr = MlInvoke.CvEMDefaultCreate(nclusters, covMatType, ref termcrit);
 }