Method NormalEstimate
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
NormalEstimate(OutputArray, OutputArray, InputArray, InputArray, int)
Estimates the normal and curvature of each point in a point cloud from nearest-neighbor results.
public static void NormalEstimate(OutputArray normals, OutputArray curvatures, InputArray inputPts, InputArray nnIdx, int maxNeighborNum = 0)
Parameters
normalsOutputArrayOutput normal of each point, Mat of size Nx3.
curvaturesOutputArrayOutput curvature of each point.
inputPtsInputArrayOriginal point cloud, Mat of size Nx3/3xN.
nnIdxInputArrayIndex information of the nearest neighbors of all points, Mat of size NxK. The first nearest neighbor of each point is itself.
maxNeighborNumintThe maximum number of neighbors to use, including the point itself. A non-positive number (the default) uses the information from
nnIdx.