Cvrtrees function parameters::Train() - Opencv / C++

Asked

Viewed 60 times

0

Hello!

I need to use the function CvRTrees::train() Opencv, but I don’t quite understand the parameters used. To help, the site has no documentation on the parameters of this function.

The specification of the function 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 very much!

1 answer

1

You are using an outdated version of opencv!

Download the latest version here, for in it all the part concerning Random Trees was reformulated to facilitate use, as can be seen in Documentación Oficial.

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

If you still have doubts, feel free to question!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.