From 5ee7596cbc49406c34bbe8237e22ab51c750ec61 Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Wed, 4 Apr 2012 12:06:36 +0000 Subject: [PATCH] fixed EM sample --- samples/python2/gaussian_mix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/python2/gaussian_mix.py b/samples/python2/gaussian_mix.py index c71ff3c3af..c0f9816e09 100644 --- a/samples/python2/gaussian_mix.py +++ b/samples/python2/gaussian_mix.py @@ -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'