CornerDetectionOptions Class

public sealed class CornerDetectionOptions

Constructors

NameDescription
CornerDetectionOptions()

CornerDetectionOptions()

CornerDetectionOptions.cs
public CornerDetectionOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options: the Harris detector, at most 500 corners at least 3 pixels apart.
FastThresholdGets the difference of brightness, as a fraction of the largest sample, by which the pixels of the circle of the FAST detector must be brighter or darker than the center, from 0 (excluded) to 1. Defaults to 0.08 (about 20 levels of 255).
HarrisKGets the constant k of the Harris measure, greater than 0 and less than 0.25. Defaults to 0.04.
MaxCornersGets the largest number of corners returned, the strongest ones, from 1 to 1,000,000. Defaults to 500.
MethodGets the detector. Defaults to CornerDetectionMethod.Harris.
MinDistanceGets the smallest distance between two corners, in pixels, from 1 to 1,000. Defaults to 3. Among corners closer than that, the strongest is kept.
ResponseThresholdGets the smallest response of a corner of the Harris and Shi-Tomasi detectors, as a fraction of the largest response of the frame, from 0 (excluded) to 1. Defaults to 0.01.
SigmaGets the standard deviation, in pixels, of the Gaussian window of the structure tensor (Harris and Shi-Tomasi), from 0.5 to 20. Defaults to 1.5. A larger window finds fewer, larger corners.

Gets the default options: the Harris detector, at most 500 corners at least 3 pixels apart.

public static CornerDetectionOptions Default { get; }

Gets the difference of brightness, as a fraction of the largest sample, by which the pixels of the circle of the FAST detector must be brighter or darker than the center, from 0 (excluded) to 1. Defaults to 0.08 (about 20 levels of 255).

public double FastThreshold { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not greater than 0 and at most 1.

Gets the constant k of the Harris measure, greater than 0 and less than 0.25. Defaults to 0.04.

public double HarrisK { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not greater than 0 and less than 0.25.

Gets the largest number of corners returned, the strongest ones, from 1 to 1,000,000. Defaults to 500.

public int MaxCorners { get; init; }

Property value

int

Exceptions

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

Gets the detector. Defaults to CornerDetectionMethod.Harris.

public CornerDetectionMethod Method { get; init; }

Property value

CornerDetectionMethod

Exceptions

ArgumentOutOfRangeException
The value is not a defined CornerDetectionMethod.

Gets the smallest distance between two corners, in pixels, from 1 to 1,000. Defaults to 3. Among corners closer than that, the strongest is kept.

public int MinDistance { get; init; }

Property value

int

Exceptions

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

ResponseThreshold

CornerDetectionOptions.cs

Gets the smallest response of a corner of the Harris and Shi-Tomasi detectors, as a fraction of the largest response of the frame, from 0 (excluded) to 1. Defaults to 0.01.

public double ResponseThreshold { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not greater than 0 and at most 1.

Gets the standard deviation, in pixels, of the Gaussian window of the structure tensor (Harris and Shi-Tomasi), from 0.5 to 20. Defaults to 1.5. A larger window finds fewer, larger corners.

public double Sigma { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not from 0.5 to 20.