CornerDetectionOptions Class
Immutable options of ImageProcessingExtensions.DetectCorners.
public sealed class CornerDetectionOptionsConstructors
| Name | Description |
|---|---|
| CornerDetectionOptions() |
CornerDetectionOptions()
CornerDetectionOptions.cspublic CornerDetectionOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | Gets the default options: the Harris detector, at most 500 corners at least 3 pixels apart. |
| FastThreshold | 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). |
| HarrisK | Gets the constant k of the Harris measure, greater than 0 and less than 0.25. Defaults to 0.04. |
| MaxCorners | Gets the largest number of corners returned, the strongest ones, from 1 to 1,000,000. Defaults to 500. |
| Method | Gets the detector. Defaults to CornerDetectionMethod.Harris. |
| MinDistance | 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. |
| ResponseThreshold | 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. |
| Sigma | 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. |
Default
CornerDetectionOptions.csGets the default options: the Harris detector, at most 500 corners at least 3 pixels apart.
public static CornerDetectionOptions Default { get; }Property value
FastThreshold
CornerDetectionOptions.csGets 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; }HarrisK
CornerDetectionOptions.csGets 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
Exceptions
ArgumentOutOfRangeException- The value is not greater than 0 and less than 0.25.
MaxCorners
CornerDetectionOptions.csGets the largest number of corners returned, the strongest ones, from 1 to 1,000,000. Defaults to 500.
public int MaxCorners { get; init; }Gets the detector. Defaults to CornerDetectionMethod.Harris.
public CornerDetectionMethod Method { get; init; }Property value
Exceptions
ArgumentOutOfRangeException- The value is not a defined
CornerDetectionMethod.
MinDistance
CornerDetectionOptions.csGets 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; }ResponseThreshold
CornerDetectionOptions.csGets 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; }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; }