2

How can I write GMM (Gaussian Mixture Model) in C. There are some implementations in Matlab but I am looking for some documentation about it and example code in C not in C++.

Amro
  • 123,847
  • 25
  • 243
  • 454
Yilmaz Paçariz
  • 186
  • 1
  • 4
  • 18

4 Answers4

2

OpenCV has an implementation of a GMM that is used for their GrabCut implementation. You can find it for example here.

edit: I just noticed you were looking for an implementation in C. The OpenCV implementation is using C++. But maybe you can use it as a starting point.

sietschie
  • 7,425
  • 3
  • 33
  • 54
2

Here you can find an implementation in C:

https://engineering.purdue.edu/~bouman/software/cluster/

Daniel Lerch
  • 661
  • 7
  • 11
1

How about the mixture model in Apophenia?

bk.
  • 6,068
  • 2
  • 24
  • 28
0

There is a GMM implementation available in vlfeat, a C library for computer vision. https://www.vlfeat.org/api/gmm.html

Jon Nordby
  • 5,494
  • 1
  • 21
  • 50