Function Parameters CvRTrees :: train () - OpenCV / C ++

0

Hello

I need to use the CvRTrees::train() function of OpenCV, but I do not quite understand the parameters used. To help, the site has no documentation on the parameters of this function.

The function specification is:

bool CvDTree::train(const Mat& trainData, 
                    int tflag, 
                    const Mat& responses, 
                    const Mat& varIdx=Mat(), 
                    const Mat& sampleIdx=Mat(), 
                    const Mat& varType=Mat(), 
                    const Mat& missingDataMask=Mat(), 
                    CvDTreeParams params=CvDTreeParams() )

Thank you!

    
asked by anonymous 05.01.2016 / 18:15

1 answer

1

You are using an outdated version of opencv!

Download the latest version here , because all the part about # has been redesigned to make it easier to use, as can be seen in the /docs.opencv.org/3.1.0/d0/d65/classcv_1_1ml_1_1RTrees.html#gsc.tab=0"> Official Documentation .

In addition, in this new version you will also find implementation examples !

If you still have questions, feel free to ask!

    
28.03.2016 / 05:26