Table of Contents

Class SACSegmentation

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Sample Consensus algorithm segmentation of 3D point cloud model.

public class SACSegmentation : Algorithm, IDisposable
Inheritance
SACSegmentation
Implements
Inherited Members

Remarks

See SacMethod for supported algorithms and SacModelType for supported models.

Properties

Confidence

The confidence that ensures at least one of the selections is an error-free set of data points.

DistanceThreshold

The distance to the model threshold. Considered as inlier point if distance to the model is less than threshold.

IsParallel

Whether to use parallelism or not. The number of threads is set by SetNumThreads(int).

MaxIterations

The maximum number of iterations to attempt.

NumberOfModelsExpected

The number of models expected.

RandomGeneratorState

State used to initialize the RNG (Random Number Generator).

SacMethodType

The type of sample consensus method to use.

SacModelType

The type of sample consensus model to use.

Methods

Create(SacModelType, SacMethod, double, int)

Creates a SACSegmentation object.

GetCustomModelConstraints()

Gets the custom model coefficient constraint function previously set via SetCustomModelConstraints(ModelConstraintFunction?), or null if none is set.

GetRadiusLimits(out double, out double)

Gets the minimum and maximum radius limits for the model.

Segment(InputArray, OutputArray, OutputArray)

Executes segmentation using the sample consensus method.

SetCustomModelConstraints(ModelConstraintFunction?)

Sets a custom model coefficient constraint function. A custom function that takes model coefficients and returns whether the model is acceptable or not. Pass null to clear a previously set constraint function.

SetRadiusLimits(double, double)

Sets the minimum and maximum radius limits for the model. Only used for models whose model parameters include a radius.