Table of Contents

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

normals OutputArray

Output normal of each point, Mat of size Nx3.

curvatures OutputArray

Output curvature of each point.

inputPts InputArray

Original point cloud, Mat of size Nx3/3xN.

nnIdx InputArray

Index information of the nearest neighbors of all points, Mat of size NxK. The first nearest neighbor of each point is itself.

maxNeighborNum int

The maximum number of neighbors to use, including the point itself. A non-positive number (the default) uses the information from nnIdx.