Commit 9ca6b9b2 authored by Pavel Rojtberg's avatar Pavel Rojtberg

rapid: fix wrapping around at end of 2D contour

parent bf0075a5
......@@ -55,7 +55,7 @@ public:
// close the loop
idx.push_back(idx[0]);
cum_dist.resize(ipts2d.rows);
cum_dist.resize(idx.size());
perimeter = 0.0f;
for (size_t i = 1; i < idx.size(); i++) {
......
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