Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(SacModelType, SacMethod, double, int)

Creates a SACSegmentation object.

public static SACSegmentation Create(SacModelType sacModelType = SacModelType.SAC_MODEL_PLANE, SacMethod sacMethod = SacMethod.SAC_METHOD_RANSAC, double threshold = 0.5, int maxIterations = 1000)

Parameters

sacModelType SacModelType

The type of sample consensus model to use.

sacMethod SacMethod

The type of sample consensus method to use.

threshold double

The distance to the model threshold.

maxIterations int

The maximum number of iterations to attempt.

Returns

SACSegmentation

SACSegmentation instance