public class HoughTransformLinesPosRadius extends Object
Modifier and Type | Class and Description |
---|---|
class |
HoughTransformLinesPosRadius.HoughLine
This class represents a straight line in Hessian normal form,
i.e., x * cos(angle) + y * sin(angle) = radius.
|
static class |
HoughTransformLinesPosRadius.Parameters |
Constructor and Description |
---|
HoughTransformLinesPosRadius(ij.process.ImageProcessor I,
HoughTransformLinesPosRadius.Parameters params)
Creates a new Hough transform from the image I.
|
HoughTransformLinesPosRadius(Point2D[] points,
int M,
int N,
HoughTransformLinesPosRadius.Parameters params)
Creates a new Hough transform from a list of 2D points.
|
Modifier and Type | Method and Description |
---|---|
double |
angleFromIndex(int i)
Calculates the actual angle (in radians) for angle index
ai |
int |
closestRadialIndex(double r) |
int[][] |
getAccumulator() |
ij.process.FloatProcessor |
getAccumulatorImage()
Creates and returns an image of the 2D accumulator array.
|
int[][] |
getAccumulatorMax() |
ij.process.FloatProcessor |
getAccumulatorMaxImage()
Creates and returns an image of the local maxima of the
2D accumulator array.
|
HoughTransformLinesPosRadius.HoughLine[] |
getLines(int amin,
int maxLines)
Finds and returns the parameters of the strongest lines with
a specified min.
|
int |
getnAng() |
int |
getnRad() |
Point2D |
getReferencePoint() |
double |
radiusFromIndex(int j)
Calculates the actual radius for radius index ri.
|
public HoughTransformLinesPosRadius(ij.process.ImageProcessor I, HoughTransformLinesPosRadius.Parameters params)
I
- input image, relevant (edge) points have pixel
values greater 0.params
- parameter object.public HoughTransformLinesPosRadius(Point2D[] points, int M, int N, HoughTransformLinesPosRadius.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 int getnRad()
public int getnAng()
public HoughTransformLinesPosRadius.HoughLine[] getLines(int amin, int maxLines)
amin
- the minimum accumulator value for each line.maxLines
- maximum number of (strongest) lines to extract.HoughTransformLinesPosRadius.HoughLine
objects.public Point2D getReferencePoint()
public double angleFromIndex(int i)
ai
i
- angle index [0,...,nAng-1]public double radiusFromIndex(int j)
j
- radius index [0,...,nRad-1].public int[][] getAccumulator()
public int[][] getAccumulatorMax()
public ij.process.FloatProcessor getAccumulatorImage()
public ij.process.FloatProcessor getAccumulatorMaxImage()
public int closestRadialIndex(double r)
Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)