29 lines
558 B
C#
29 lines
558 B
C#
using System;
|
|
|
|
namespace AForge.Imaging;
|
|
|
|
public class HoughLine : IComparable
|
|
{
|
|
public readonly double Theta;
|
|
|
|
public readonly short Radius;
|
|
|
|
public readonly short Intensity;
|
|
|
|
public readonly double RelativeIntensity;
|
|
|
|
public HoughLine(double theta, short radius, short intensity, double relativeIntensity)
|
|
{
|
|
Theta = theta;
|
|
Radius = radius;
|
|
Intensity = intensity;
|
|
RelativeIntensity = relativeIntensity;
|
|
}
|
|
|
|
public int CompareTo(object value)
|
|
{
|
|
short intensity = Intensity;
|
|
return -intensity.CompareTo(((HoughLine)value).Intensity);
|
|
}
|
|
}
|