Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Random forest - RTrees - getSplits - type mismatch

$
0
0
Hello, I'm trying to access ``RTrees ``'s nodes and trees. Having the following code: Ptr rt = RTrees::create(); ... ... rt->train(data); vector splits = rt->getSplits(); I keep getting the memory access violation. Note that ``rt->getSplits()`` works by itself and I guess the problem is with the data type of ``splits``. Also, when I read training data information and want to copy it into a variable: std::vector catMap; data->getCapMap().copyTo(catMap); it copies garbage into the ``carMap`` and I have to copy it element by element instead of using ``copyTo`` method. Do you have any idea about these two questions? Thanks,

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>