'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.
opencv version ? api has changed a lot from opencv1.0 (ml.h). you just seem to use outdated code
also, please add the relevant lines of code to your question
These are the lines, CvRTrees *rtree = new CvRTrees; CvRTParams params = CvRTParams("all the parameters");
And I am using OpenCV 3.
Can you please tell me how to create this train and test file. What should be the format ? I am confused.