2014-05-05 13:50:12 -0600 | received badge | ● Editor (source) |
2014-05-05 13:49:21 -0600 | asked a question | Got different EM::predict() results after EM::read() saved model Hi there! I'm new to OpenCV and C++ and I'm trying to build a classifier using Gaussian Mixture Model within the OpenCV. I figured out how it works and got it worked ... maybe. I got something like this now: If I classify the training samples just after the model was trained and saved, I got the result I want. But when I reclassify my training data using the read(), one of the clusters is missing, means I got different cluster result from the same GMM model. I don't get it now because the cluster I want was gone, I can't reproduce the classification again until I retrained the model using the same data. I checked the code in runtime and the result valule in the Vec2d from <log, result=""> which predict() returned was never assigned to 1 (I set 3 clusters). Maybe there's a bug or I did something wrong? p.s. I'm using 2.4.8 in VS2013 My programs like this: train part save/load the model predict part |