em_model.get_weights() CvMat.get_weights()

the case of nclusters = 4.



const CvMat *weights = em_model.get_weights();
cout << cvGet2D(weights, 0, 0).val[0] << "get_weights\n";
cout << cvGet2D(weights, 0, 1).val[0] << "get_weights\n";
cout << cvGet2D(weights, 0, 2).val[0] << "get_weights\n";
cout << cvGet2D(weights, 0, 3).val[0] << "get_weights\n";
cout << cvGet2D(weights, 0, 4).val[0] << "get_weights\n";
//cout << cvGet2D(weights, 1, 0).val[0] << "get_weights\n";//error
//cout << cvGet2D(weights, 1, 1).val[0] << "get_weights\n";//error
//cout << cvGet2D(weights, 2, 1).val[0] << "get_weights\n";//error
//cout << cvGet2D(weights, 3, 0).val[0] << "get_weights\n";//error
//cout << cvGet2D(weights, 3, 1).val[0] << "get_weights\n";//error
//cout << cvGet2D(means, 4, 0).val[0] << "get_weights\n";//error
getch();