提交 a00ff32b 编写于 作者: S simonJJJ

update


Former-commit-id: 887fc7b80f4b7f6e8ed0545261573224eb823cc8
上级 e21558f4
......@@ -232,17 +232,15 @@ void Rle4DensePoints(std::vector<std::vector<cv::Point_<T>>> &poly_point_vec,
temp_rle_vec[j] -= p;
p = temp;
}
int m = 0, j = 0;
int j = 0;
upsample_poly_point_vec[i].push_back(temp_rle_vec[j++]);
++m;
while (j < rle_size) {
if (temp_rle_vec[j] > 0) {
upsample_poly_point_vec[i].push_back(temp_rle_vec[j++]);
++m;
} else {
++j;
if (j < rle_size) {
upsample_poly_point_vec[i][m - 1] += temp_rle_vec[j++];
upsample_poly_point_vec[i].back() += temp_rle_vec[j++];
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册