Skip to content

Normal Estimation Using Integral Images not always working #3307

@Kaju-Bubanja

Description

@Kaju-Bubanja

Your Environment

  • Operating System and version: Ubuntu 18.04
  • Compiler: GCC
  • PCL Version: 1.9.1

Context

I'm trying to estimate normals of a brick with sizes 20x20x30cm. I have following patch and was wondering if there is maybe also a bug lurking in the integral normal estimation, since as I see it this PR just fixes the other normal estimation method.

Expected Behavior

The normals of one side of the brick get estimated pretty accuretaly, but completely fail on the other side. I suspect that this is due to the other side being more sparse, but it does not look so bad that I would excpect it to deliver no normals at all.

Current Behavior

Screenshot from 2019-08-27 14-10-49
Screenshot from 2019-08-27 14-15-20
Screenshot from 2019-08-27 14-11-15

Code to Reproduce

Pretty much the sample code from the tutorial:

ne_.setNormalEstimationMethod (ne_.COVARIANCE_MATRIX);
ne.setNormalSmoothingSize(normal_smoothing_size);
ne.setInputCloud(input_cloud);
ne.compute(*output_cloud);

Possible Solution

I tried different smoothing sizes in increments of 5 starting at 5 to 40, but no size delivers any normals for the top plane. Is this to be expected or a bug? Attached is a test file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions