public class HoughTransformLines.HoughLine extends Object implements Comparable<HoughTransformLines.HoughLine>
HoughTransformLines
since its instances refer to the particular enclosing Hough transform object.Constructor and Description |
---|
HoughLine(double angle,
double radius,
int count)
Public constructor (only available with an enclosing HoughTransformLines instance!)
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HoughTransformLines.HoughLine hl2)
Required by the
Comparable interface, used for sorting
lines by their point count. |
void |
draw(ij.process.ImageProcessor ip,
double thickness)
This is a brute-force drawing method which simply marks all
image pixels that are sufficiently close to the HoughLine hl.
|
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)
angle
- angleradius
- radiuscount
- countpublic double getAngle()
public double getRadius()
HoughTransformLines
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 void draw(ij.process.ImageProcessor ip, double thickness)
ip
- The ImageProcessor to draw to.thickness
- The thickness of the lines to be drawn.public int compareTo(HoughTransformLines.HoughLine hl2)
Comparable
interface, used for sorting
lines by their point count.compareTo
in interface Comparable<HoughTransformLines.HoughLine>
hl2
- another HoughTransformLines.HoughLine
instance.Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)