public class HoughCircles extends Object implements ImageAnalyser<FImage>
Modifier and Type | Class and Description |
---|---|
static class |
HoughCircles.WeightedCircle
A circle with an associated weight.
|
Modifier and Type | Field and Description |
---|---|
protected int |
maxRad |
protected int |
minRad |
protected gnu.trove.map.hash.TIntObjectHashMap<gnu.trove.map.hash.TIntObjectHashMap<gnu.trove.map.hash.TIntFloatHashMap>> |
radmap |
Constructor and Description |
---|
HoughCircles(int minRad,
int maxRad,
int radIncrement,
int nDegree)
Construct with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
List<HoughCircles.WeightedCircle> |
getBest(int n)
Get the n-best detected circles.
|
protected int minRad
protected int maxRad
protected gnu.trove.map.hash.TIntObjectHashMap<gnu.trove.map.hash.TIntObjectHashMap<gnu.trove.map.hash.TIntFloatHashMap>> radmap
public HoughCircles(int minRad, int maxRad, int radIncrement, int nDegree)
minRad
- minimum search radiusmaxRad
- maximum search radiusradIncrement
- amount to increment search radius by between min and max.nDegree
- number of degree incrementspublic void analyseImage(FImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
image
- The image to process in place.public List<HoughCircles.WeightedCircle> getBest(int n)
n
- the number of circles to return