Method ComputeNormalsPC3d
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ComputeNormalsPC3d(InputArray, OutputArray, int, bool, Vec3f)
Computes surface normals for a point cloud using local plane fitting.
public static int ComputeNormalsPC3d(InputArray pointCloud, OutputArray pointCloudWithNormals, int numberOfNeighbors = 6, bool flipViewpoint = false, Vec3f viewpoint = default)
Parameters
pointCloudInputArrayInput point cloud as an N-by-3 CV_32F matrix.
pointCloudWithNormalsOutputArrayOutput N-by-6 CV_32F matrix containing XYZ coordinates and normals.
numberOfNeighborsintNumber of neighboring points used for each local plane fit.
flipViewpointboolWhether normals should be oriented toward
viewpoint.viewpointVec3fViewpoint used when
flipViewpointis true.
Returns
- int
One on success, matching the OpenCV implementation.