mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
fixed EM sample
This commit is contained in:
parent
9c44715f50
commit
5ee7596cbc
@ -37,8 +37,7 @@ if __name__ == '__main__':
|
||||
print 'EM (opencv) ...'
|
||||
em = cv2.EM(points, params = dict( nclusters = cluster_n, cov_mat_type = cv2.EM_COV_MAT_GENERIC) )
|
||||
means = em.getMeans()
|
||||
covs = np.zeros((cluster_n, 2, 2), np.float32)
|
||||
covs = em.getCovs(covs) # FIXME
|
||||
covs = em.getCovs()
|
||||
found_distrs = zip(means, covs)
|
||||
print 'ready!\n'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user