|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectregistration.HoughTransform
public class HoughTransform
This class implements a Hough transformer. For the Hough circle transform, parts based on work by Hemerson Pistori (pistori@ec.ucdb.br), Eduardo Rocha Costa (eduardo.rocha@poli.usp.br) and Mark A. Schulze (http://www.markschulze.net/) Copyright (c) 1999-2004, Michael Abramoff. All rights reserved.
| Field Summary | |
|---|---|
double |
threshold
The edge threshold. |
| Constructor Summary | |
|---|---|
HoughTransform(int width,
int height,
double threshold)
New Hough transform. |
|
HoughTransform(java.awt.Rectangle roi,
double threshold)
New Hough transform for a ROI. |
|
| Method Summary | |
|---|---|
void |
circleTransform(float[] image,
int imagewidth,
double radius)
Hough transform the image for a circle with radius. |
float[] |
getCenter()
Get the center of the first Hough transform circle. |
LocatedCircle |
getCircle(float[] image,
int imagewidth,
int imageheight,
float radius)
Find the circle in the image of radius. |
java.util.Vector |
getCircles(int maxc,
double scale)
Find the centers of the circles corresponding to radius by analyzing, but not within scale pixels of each other, the Hough transform for its maxima. |
ij.process.ImageProcessor |
getImageProcessor()
Make an ImageJ ImageProcessor from this transform. |
LocatedCircle |
getLargestCircle(float[] image,
int imagewidth,
int imageheight)
Find the largest circle in the image that has a 'good' fit. |
float[] |
getValues()
Get the Hough transform value vector. |
static float[] |
line(float[] image,
int width,
int distanceBins,
int thetaBins)
Hough transform image for lines with angle theta and distance from center. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double threshold
| Constructor Detail |
|---|
public HoughTransform(int width,
int height,
double threshold)
public HoughTransform(java.awt.Rectangle roi,
double threshold)
| Method Detail |
|---|
public void circleTransform(float[] image,
int imagewidth,
double radius)
image - a float[] the imageimagewidth - the width in pixels of the imageradius - a double with the radius of the circle.
public static float[] line(float[] image,
int width,
int distanceBins,
int thetaBins)
image - a float[] the imagewidth - the width in pixels of the imagethetaBins - number of bins for angle. The more bins, the more precision in the angle, but the slower.distanceBins - number of bins for distance. The more bins, the more precision in the distance from center, does not have
an effect on processing speed.public float[] getValues()
the - values as a float[]public float[] getCenter()
public java.util.Vector getCircles(int maxc,
double scale)
maxc - the maximum number of circle centers to look for.scale - the scale at which you are looking. Determines the area around a center around which other
circles are not found.
public LocatedCircle getLargestCircle(float[] image,
int imagewidth,
int imageheight)
image - the imageimagewidth - the width of the image in pixels.imageheight - the height of the image in pixels.
public LocatedCircle getCircle(float[] image,
int imagewidth,
int imageheight,
float radius)
image - the imageimagewidth - the width of the image in pixels.imageheight - the height of the image in pixels.radius - the radius of the circle.
public ij.process.ImageProcessor getImageProcessor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||