Package georegression.fitting.points
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Contains everything that a single thread needs to search for points -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.void
convert
(List<Point3D_F32> input, DogArray<Vector3D_F32> output)
-
Field Details
-
numNeighbors
public int numNeighbors
-
-
Constructor Details
-
PointCloudToNormals_F32
public PointCloudToNormals_F32()
-
-
Method Details
-
convert
-
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.
-