Class PointCloudToNormals_F32

java.lang.Object
georegression.fitting.points.PointCloudToNormals_F32
Direct Known Subclasses:
PointCloudToNormals_MT_F32

@Generated("georegression.fitting.points.PointCloudToNormals_F64") public class PointCloudToNormals_F32 extends Object
Takes in a point cloud and returns the same point cloud with surface norms. In this implementation, we use a KDTree to find all the N local neighbors of each point. A plane is fit to those neighbors and the normal extracted from that. The sign of the normal is arbitrary as additional information is needed.
  • Field Details

    • numNeighbors

      public int numNeighbors
  • Constructor Details

    • PointCloudToNormals_F32

      public PointCloudToNormals_F32()
  • Method Details

    • convert

      public void convert(List<Point3D_F32> input, List<Point3D_F32> cloud, DogArray<Vector3D_F32> output)
      Computes surface normals for all the inputs using the provided cloud.
      Parameters:
      input - (Input) Points which will have their normals computed
      cloud - (Input) The point cloud which will be sampled for the local planes
      output - (Output) Storage for the found normals of the input
    • convert

      protected void convert(int idx0, int idx1, List<Point3D_F32> input, DogArray<Vector3D_F32> output, PointCloudToNormals_F32.Helper helper)
      Convert all the points within the specified range.