Commit 4ea11a08 authored by yarglawaldeg's avatar yarglawaldeg Committed by Vadim Pisarevsky

update structured_edge_detection (#1579)

* update structured_edge_detection 

update structured_edge_detection to read models from updated p. dollar toolbox

* Update structured_edge_detection.cpp

* Update structured_edge_detection.cpp

casting size_t to int
parent e351caed
...@@ -801,9 +801,11 @@ protected: ...@@ -801,9 +801,11 @@ protected:
{// for j,k in [0;width)x[0;nTreesEval) {// for j,k in [0;width)x[0;nTreesEval)
int currentNode = pIndex[j*nTreesEval + k]; int currentNode = pIndex[j*nTreesEval + k];
size_t sizeBoundaries = __rf.edgeBoundaries.size();
int start = __rf.edgeBoundaries[currentNode]; int convertedBoundaries = static_cast<int>(sizeBoundaries);
int finish = __rf.edgeBoundaries[currentNode + 1]; int nBnds = (convertedBoundaries - 1) / (nTreesNodes * nTrees);
int start = __rf.edgeBoundaries[currentNode * nBnds];
int finish = __rf.edgeBoundaries[currentNode * nBnds + 1];
if (start == finish) if (start == finish)
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment