2016-03-07 17:03:23 -0600 | received badge | ● Scholar (source) |
2016-03-07 17:03:07 -0600 | answered a question | Accessing and modifying OpenCV Decision Tree Nodes when using Adaboost Okay, Was able to edit the decision tree by following the methods in source for how the CvBoost classifier saved and read itself from disk. For some reason In order to get a copy of the the Decision Tree the CvSeqReader and the macro cvStartReadSeq worked best. The macro CV_READ_SEQ_ELEM() seems to update itself during the loop getting the next tree in the Seq.: |
2016-02-24 16:48:24 -0600 | received badge | ● Editor (source) |
2016-02-24 00:17:52 -0600 | asked a question | Accessing and modifying OpenCV Decision Tree Nodes when using Adaboost Hi All, I am learning a boosted tree from 30000 randomly generated features. The learning is limited to only say the best 100 features. After learning how do I extract from the CvBoost object, the indexes of the features used by the decision tree. My motivation for doing this is to eliminate the requirement to generate all 30000 features and only compute those features that will be used. I've included a printout of the yml file generated from the CvBoost.save function. I think what I want is the value called EDIT Currently I have the following code for accessing the data: this function is: However when I try to access any members of root such as in any help would be great cheers Peter |