Package georegression.fitting.points
Class PointCloudToNormals_F64
java.lang.Object
georegression.fitting.points.PointCloudToNormals_F64
- Direct Known Subclasses:
PointCloudToNormals_MT_F64
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_F64> input, DogArray<Vector3D_F64> output, PointCloudToNormals_F64.Helper helper) Convert all the points within the specified range.void
convert
(List<Point3D_F64> input, DogArray<Vector3D_F64> output)
-
Field Details
-
numNeighbors
public int numNeighbors
-
-
Constructor Details
-
PointCloudToNormals_F64
public PointCloudToNormals_F64()
-
-
Method Details
-
convert
-
convert
protected void convert(int idx0, int idx1, List<Point3D_F64> input, DogArray<Vector3D_F64> output, PointCloudToNormals_F64.Helper helper) Convert all the points within the specified range.
-