提交 458b9c4c 编写于 作者: F Florian Hubner

Fix border handling in IntegralImageNormalEstimation

When the border handling of the IntegralImageNormalEstimation is set to
BORDER_POLICY_IGNORE and you use indices to only compute a subset of the
normals the right border wasn't handled correctly because the wrong
coordinate was used for the check.
上级 b6474c34
......@@ -1047,7 +1047,7 @@ pcl::IntegralImageNormalEstimation<PointInT, PointOutT>::computeFeaturePart (con
continue;
}
if (u < border || v > right)
if (u < border || u > right)
{
output.points[idx].getNormalVector3fMap ().setConstant (bad_point);
output.points[idx].curvature = bad_point;
......@@ -1091,7 +1091,7 @@ pcl::IntegralImageNormalEstimation<PointInT, PointOutT>::computeFeaturePart (con
continue;
}
if (u < border || v > right)
if (u < border || u > right)
{
output.points[idx].getNormalVector3fMap ().setConstant (bad_point);
output.points[idx].curvature = bad_point;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册