HoughLineOptions Class

public sealed class HoughLineOptions

Constructors

NameDescription
HoughLineOptions()

HoughLineOptions()

HoughLineOptions.cs
public HoughLineOptions()

No documentation is available.

Properties

NameDescription
AngleStepGets the resolution of the angles, in degrees, from 0.05 to 45. Defaults to 1. The angles are the multiples of 180 / round(180 / AngleStep).
DefaultGets the default options.
DistanceStepGets the resolution of the distances, in pixels, from 0.25 to 100. Defaults to 1.
EdgeOptionsGets the options of the Canny edge detector that finds the pixels that vote. Defaults to CannyEdgeOptions.Default.
MaxLinesGets the largest number of lines returned, those with the most votes, from 1 to 100,000. Defaults to 32.
MinAngleSeparationGets the smallest difference of angle, in degrees, between two lines that are not also closer than HoughLineOptions.MinDistanceSeparation, from 0 to 90. Defaults to 5. Of two lines closer than both separations, the strongest is kept: a straight edge also gives weaker peaks a few degrees away from its angle, which this removes.
MinDistanceSeparationGets the smallest difference of distance, in pixels, between two lines that are not also closer than HoughLineOptions.MinAngleSeparation, from 0 to 10,000. Defaults to 5.
MinVotesGets the smallest number of edge pixels on a line, or null for a quarter of the smaller side of the frame (at least 2). Defaults to null.

Gets the resolution of the angles, in degrees, from 0.05 to 45. Defaults to 1. The angles are the multiples of 180 / round(180 / AngleStep).

public double AngleStep { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not from 0.05 to 45.

Gets the default options.

public static HoughLineOptions Default { get; }

Property value

HoughLineOptions

Gets the resolution of the distances, in pixels, from 0.25 to 100. Defaults to 1.

public double DistanceStep { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not from 0.25 to 100.

Gets the options of the Canny edge detector that finds the pixels that vote. Defaults to CannyEdgeOptions.Default.

public CannyEdgeOptions EdgeOptions { get; init; }

Property value

CannyEdgeOptions

Exceptions

ArgumentNullException
The value is null.

Gets the largest number of lines returned, those with the most votes, from 1 to 100,000. Defaults to 32.

public int MaxLines { get; init; }

Property value

int

Exceptions

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

MinAngleSeparation

HoughLineOptions.cs

Gets the smallest difference of angle, in degrees, between two lines that are not also closer than HoughLineOptions.MinDistanceSeparation, from 0 to 90. Defaults to 5. Of two lines closer than both separations, the strongest is kept: a straight edge also gives weaker peaks a few degrees away from its angle, which this removes.

public double MinAngleSeparation { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not from 0 to 90.

MinDistanceSeparation

HoughLineOptions.cs

Gets the smallest difference of distance, in pixels, between two lines that are not also closer than HoughLineOptions.MinAngleSeparation, from 0 to 10,000. Defaults to 5.

public double MinDistanceSeparation { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not from 0 to 10,000.

Gets the smallest number of edge pixels on a line, or null for a quarter of the smaller side of the frame (at least 2). Defaults to null.

public int? MinVotes { get; init; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is not positive.