opencv - R function Mclust slow -


i used mclust function in mclust package em-clustering of vector of 27,000 entries 2 clusters:

mclust(data_vector, g=2) 

another software uses opencv em-clustering 3 times faster mclust (even if reduce maximum number of iterations in mclust e.g. 4). in mclust source looks function implemented in fortran.

how can it seems slower opencv implementation?

try running both exact same:

  • initial conditions
  • model (with/without covariance etc.)

i believe mclust quite expensive initialization. if opencv starts random sample initialization, no wonder faster.

so starter, give both exact same vector start with.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -