public class HoughTransformLines extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HoughTransformLines.HoughLine
This class represents a straight line in Hessian normal form,
i.e., x * cos(angle) + y * sin(angle) = radius.
|
static class |
HoughTransformLines.Parameters |
| Constructor and Description |
|---|
HoughTransformLines(ij.process.ImageProcessor I,
HoughTransformLines.Parameters params)
Creates a new Hough transform from the image I.
|
HoughTransformLines(Point2D[] points,
int M,
int N,
HoughTransformLines.Parameters params)
Creates a new Hough transform from a sequence of 2D points.
|
| Modifier and Type | Method and Description |
|---|---|
double |
angleFromIndex(int ai)
Calculates the actual angle (in radians) for angle index
ai |
ij.process.FloatProcessor |
getAccumulatorImage()
Creates and returns an image of the 2D accumulator array.
|
ij.process.FloatProcessor |
getAccumulatorImageExtended()
Creates and returns an image of the extended 2D accumulator array,
produced by adding a vertically mirrored copy of the accumulator
to its right end.
|
ij.process.FloatProcessor |
getAccumulatorMaxImage()
Creates and returns an image of the local maxima of the
2D accumulator array.
|
HoughTransformLines.HoughLine[] |
getLines(int amin,
int maxLines)
Finds and returns the parameters of the strongest lines with
a specified min.
|
Point2D |
getReferencePoint() |
double |
radiusFromIndex(int ri)
Calculates the actual radius for radius index ri.
|
public HoughTransformLines(ij.process.ImageProcessor I, HoughTransformLines.Parameters params)
I - input image, relevant (edge) points have pixel
values greater 0.params - parameter object.public HoughTransformLines(Point2D[] points, int M, int N, HoughTransformLines.Parameters params)
points - an array of 2D points.M - width of the corresponding image plane.N - height of the corresponding image plane.params - parameter object.public HoughTransformLines.HoughLine[] getLines(int amin, int maxLines)
amin - the minimum accumulator value for each line.maxLines - maximum number of (strongest) lines to extract.HoughTransformLines.HoughLine objects.public Point2D getReferencePoint()
public double angleFromIndex(int ai)
aiai - angle index [0,...,nAng-1]public double radiusFromIndex(int ri)
ri - radius index [0,...,nRad-1].public ij.process.FloatProcessor getAccumulatorImage()
public ij.process.FloatProcessor getAccumulatorImageExtended()
public ij.process.FloatProcessor getAccumulatorMaxImage()
Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)