what i do for this error

asked 2014-11-02 09:27:33 -0500

sabri1990 gravatar image

updated 2014-11-02 09:31:28 -0500

Moster gravatar image
void doEM1D(Mat& _im, Mat& probs,int num_models = 2,bool useRanges = true,Mat& lables = Mat()) {
    //Mat im; cvtColor(_im,im,CV_RGB2HSV);
    Mat im = _im;

    vector<vector<CvEM>> model(num_models);
    for(int i=0;i<num_models;i++) {
            model[i] = vector<CvEM>(3);
    }
    CvEMParams ps(1);

error C2065: 'CvEM' : undeclared identifier error C2923: 'std :: vector': 'CVEM' is not a valid type template argument for parameter '_Ty' error C2065: 'CvEMParams' : undeclared identifier

edit retag flag offensive close merge delete

Comments

CvEM is in the legacy module. Have you tried to use the new C++ interface?

FooBar gravatar imageFooBar ( 2014-11-02 10:38:40 -0500 )edit

I used the latest version visual studio 2013 and opencv 2.4.9 but this code wrote in older version

sabri1990 gravatar imagesabri1990 ( 2014-11-02 12:41:11 -0500 )edit