Ask Your Question

BhgSr's profile - activity

2017-07-07 08:43:50 -0600 commented answer 'CvRTParams' : undeclared identifier (RandomForest, OpenCV, C++)

Ok friend.

2017-07-07 01:29:04 -0600 commented question 'CvRTParams' : undeclared identifier (RandomForest, OpenCV, C++)

Can you please tell me how to create this train and test file. What should be the format ? I am confused.

2017-07-07 01:29:02 -0600 commented answer 'CvRTParams' : undeclared identifier (RandomForest, OpenCV, C++)

Can you please tell me how to create this train and test file. What should be the format ? I am confused.

2017-07-06 08:48:22 -0600 commented answer 'CvRTParams' : undeclared identifier (RandomForest, OpenCV, C++)

Thank you friend. This info is very helpful to me.

Can you please advise how can I read .csv data into Ptr<traindata> format ? What do these parameters mean in the loadFromCSV() function ?

TrainData::loadFromCSV(filename, 0, response_idx, response_idx+1, typespec);

2017-07-06 08:35:59 -0600 received badge  Scholar (source)
2017-07-06 01:46:52 -0600 commented question 'CvRTParams' : undeclared identifier (RandomForest, OpenCV, C++)

These are the lines, CvRTrees *rtree = new CvRTrees; CvRTParams params = CvRTParams("all the parameters");

And I am using OpenCV 3.

2017-07-06 00:45:15 -0600 asked a question 'CvRTParams' : undeclared identifier (RandomForest, OpenCV, C++)

I am trying to implement Random Forest Classifier using OpenCV C++. But "CvRTParams", "CvRTrees", these keywords are not being recognized by my program and showing as "identifier undeclared". I have included the header "ml.h" and other related headers. Also, the library path is correct.

Relevant Lines, CvRTrees *rtree = new CvRTrees; CvRTParams params = CvRTParams("all the parameters");

And I am using OpenCV 3 and Visual Studio 2012.