public class HoughTransformLinesPosRadius.HoughLine extends Object implements Comparable<HoughTransformLinesPosRadius.HoughLine>
HoughTransformLinesPosRadius
since its instances refer to the particular enclosing Hough transform object.Constructor and Description |
---|
HoughLine(double angle,
double radius,
int count) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HoughTransformLinesPosRadius.HoughLine hl2)
Required by the
Comparable interface, used for sorting
lines by their point count. |
double |
getAngle() |
int |
getCount() |
double |
getDistance(double x,
double y)
Returns the perpendicular distance between this line and the point (x, y).
|
double |
getDistance(Point2D p)
Returns the perpendicular distance between this line and the point p.
|
double |
getRadius() |
Point2D |
getReferencePoint() |
String |
toString() |
public HoughLine(double angle, double radius, int count)
public double getAngle()
public double getRadius()
HoughTransformLinesPosRadius
instance.public int getCount()
public Point2D getReferencePoint()
public double getDistance(double x, double y)
x
- x-coordinate of point position.y
- y-coordinate of point position.public double getDistance(Point2D p)
p
- point position.public int compareTo(HoughTransformLinesPosRadius.HoughLine hl2)
Comparable
interface, used for sorting
lines by their point count.compareTo
in interface Comparable<HoughTransformLinesPosRadius.HoughLine>
hl2
- another HoughTransformLinesPosRadius.HoughLine
instance.Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)