HomographyRansacOptions Class

public sealed class HomographyRansacOptions

Constructors

NameDescription
HomographyRansacOptions()

HomographyRansacOptions()

HomographyRansacOptions.cs
public HomographyRansacOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options: a threshold of 3 pixels, 1,000 samples and the seed 0.
IterationsGets the number of random samples of four correspondences, from 1 to 1,000,000. Defaults to 1,000, enough to find a sample without outliers with a probability of 99.9% when up to about 60% of the correspondences are outliers.
SeedGets the seed of the random samples: the same seed gives the same result on every platform. Defaults to 0.
ThresholdGets the largest distance, in the units of the destination points (pixels), between a destination point and the image of its source point for the correspondence to be an inlier, greater than 0. Defaults to 3.

Gets the default options: a threshold of 3 pixels, 1,000 samples and the seed 0.

public static HomographyRansacOptions Default { get; }

Gets the number of random samples of four correspondences, from 1 to 1,000,000. Defaults to 1,000, enough to find a sample without outliers with a probability of 99.9% when up to about 60% of the correspondences are outliers.

public int Iterations { get; init; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not from 1 to 1,000,000.

Gets the seed of the random samples: the same seed gives the same result on every platform. Defaults to 0.

public int Seed { get; init; }

Property value

int

Gets the largest distance, in the units of the destination points (pixels), between a destination point and the image of its source point for the correspondence to be an inlier, greater than 0. Defaults to 3.

public double Threshold { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not a finite number greater than 0.