Table of Contents

Method Segment

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Segment(InputArray, OutputArray, OutputArray)

Executes segmentation using the sample consensus method.

public virtual int Segment(InputArray inputPts, OutputArray labels, OutputArray modelsCoefficients)

Parameters

inputPts InputArray

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

labels OutputArray

The label corresponds to the model number, 0 means it does not belong to any model, range [0, Number of final resultant models obtained].

modelsCoefficients OutputArray

The resultant models coefficients. Placed in a matrix of NxK with depth CV_64F, where N is the number of models and K is the number of coefficients of one model.

Returns

int

Number of final resultant models obtained by segmentation.