Table of Contents

Method Create

Namespace
OpenCvSharp.XFeatures2D
Assembly
OpenCvSharp.dll

Create(int, int, PCTSignaturesPointDistribution)

Creates PCTSignatures algorithm using sample and seed count. It generates its own sets of sampling points and clusterization seed indexes.

public static PCTSignatures Create(int initSampleCount = 2000, int initSeedCount = 400, PCTSignaturesPointDistribution pointDistribution = PCTSignaturesPointDistribution.Uniform)

Parameters

initSampleCount int

Number of points used for image sampling.

initSeedCount int

Number of initial clusterization seeds. Must be lower or equal to initSampleCount.

pointDistribution PCTSignaturesPointDistribution

Distribution of generated points.

Returns

PCTSignatures

Create(IEnumerable<Point2f>, int)

Creates PCTSignatures algorithm using pre-generated sampling points and number of clusterization seeds. It uses the provided sampling points and generates its own clusterization seed indexes.

public static PCTSignatures Create(IEnumerable<Point2f> initSamplingPoints, int initSeedCount)

Parameters

initSamplingPoints IEnumerable<Point2f>

Sampling points used in image sampling.

initSeedCount int

Number of initial clusterization seeds. Must be lower or equal to initSamplingPoints.Length.

Returns

PCTSignatures

Create(IEnumerable<Point2f>, IEnumerable<int>)

Creates PCTSignatures algorithm using pre-generated sampling points and clusterization seed indexes.

public static PCTSignatures Create(IEnumerable<Point2f> initSamplingPoints, IEnumerable<int> initClusterSeedIndexes)

Parameters

initSamplingPoints IEnumerable<Point2f>

Sampling points used in image sampling.

initClusterSeedIndexes IEnumerable<int>

Indexes of initial clusterization seeds. Its size must be lower or equal to initSamplingPoints.Length.

Returns

PCTSignatures