When the program runs the code line , the node breaks out,but no errors are published.No yaml file are saved.
I suspects there may be some bugs lying here(maybe it's not arranging by rows?):
forest_->train(cv::ml::TrainData::create(
cv::cvarrToMat(cv_data), // train data
cv::ml::ROW_SAMPLE, // tflag
cv::cvarrToMat(cv_resp) // responses (i.e. labels)
// 0, // varldx (?)
// 0, // sampleldx (?)
// 0, // missing data mask
// var_type // variable type
));
When the program runs the code line , the node breaks out,but no errors are published.No yaml file are saved.
I suspects there may be some bugs lying here(maybe it's not arranging by rows?): forest_->train(cv::ml::TrainData::create( cv::cvarrToMat(cv_data), // train data cv::ml::ROW_SAMPLE, // tflag cv::cvarrToMat(cv_resp) // responses (i.e. labels) // 0, // varldx (?) // 0, // sampleldx (?) // 0, // missing data mask // var_type // variable type ));
I use opencv3.4