I want to use LBP and Random forest,but I don't know how to get LBP feature for Random forest training? can anyone help me
1 | initial version |
I want to use LBP and Random forest,but I don't know how to get LBP feature for Random forest training? can anyone help me
2 | No.2 Revision |
I want to use LBP and Random forest,but Forest, but I don't know how to get the LBP feature features for Random forest training?
can training?
Can anyone help me out?
3 | No.3 Revision |
I want to use LBP and Random Forest, but I don't know how to get the LBP features for Random forest training?
Can anyone help me out?
EDIT 1 :
Mat train_features; // 1 row for each lbp feature, float !
Mat train_labels // 1 row (containing 1 float element with the id) for each feature
CvRTrees tree;
CvRTParams cvrtp; // set params, play with those!! (the numbers were for my problem)
cvrtp.max_depth = 25;
cvrtp.min_sample_count = 6;
cvrtp.max_categories = 2;
cvrtp.term_crit.max_iter = 100;
tree.train ( train_features , CV_ROW_SAMPLE , train_labels,cv::Mat(),cv::Mat(),cv::Mat(),cv::Mat(),cvrtp );
// later:
float id = tree.predict(sample); // where sample is a lbp feature , again
I want like this,but I don't konw How to create the train_features matrix element. Anyone can help me out here?
4 | No.4 Revision |
sorry.....
you give me the link, I want to use LBP and have see, the train function base on Random Forest, but I don't know how to get Forest?what is the LBP features for Random forest training?
Can anyone help me out?
EDIT 1 :
Mat train_features; // 1 row for each lbp feature, float !
Mat train_labels train Algorithm?
I'm new hand in // 1 row (containing 1 float element with the id) for each feature
CvRTrees tree;
CvRTParams cvrtp; // set params, play with those!! (the numbers were for my problem)
cvrtp.max_depth = 25;
cvrtp.min_sample_count = 6;
cvrtp.max_categories = 2;
cvrtp.term_crit.max_iter = 100;
tree.train ( train_features , CV_ROW_SAMPLE , train_labels,cv::Mat(),cv::Mat(),cv::Mat(),cv::Mat(),cvrtp );
// later:
float id = tree.predict(sample); // where sample is a lbp feature , again
I want like this,but I don't konw How to create the train_features matrix element. Anyone can help me out here?openCV