Package boofcv.alg.fiducial.calib.circle
Class EllipsesIntoClusters
java.lang.Object
boofcv.alg.fiducial.calib.circle.EllipsesIntoClusters
Given an unordered list of ellipses found in the image connect them into clusters. A cluster of
ellipses will be composed of ellipses which are spatially close to each other and have major
axises which are of similar size.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEllipsesIntoClusters
(double maxDistanceToMajorAxisRatio, double sizeSimilarityTolerance, double edgeIntensitySimilarityTolerance) Configures clustering -
Method Summary
Modifier and TypeMethodDescriptiondouble
int
double
void
process
(List<BinaryEllipseDetector.EllipseInfo> ellipses, List<List<EllipsesIntoClusters.Node>> output) Processes the ellipses and creates clusters.void
setMaxDistanceToMajorAxisRatio
(double maxDistanceToMajorAxisRatio) void
setMinimumClusterSize
(int minimumClusterSize) void
setSizeSimilarityTolerance
(double sizeSimilarityTolerance)
-
Constructor Details
-
EllipsesIntoClusters
public EllipsesIntoClusters(double maxDistanceToMajorAxisRatio, double sizeSimilarityTolerance, double edgeIntensitySimilarityTolerance) Configures clustering- Parameters:
maxDistanceToMajorAxisRatio
- The maximum distance away the center of another ellipse that will be considered specifies as a multiple of the ellipse's major axissizeSimilarityTolerance
- How similar two ellipses must be to be connected. 0 to 1.0. 1.0 = perfect match and 0.0 = infinite difference in sizeedgeIntensitySimilarityTolerance
- How similar the intensity of the ellipses edges need to be. 0 to 1.0. 1.0 = perfect
-
-
Method Details
-
process
public void process(List<BinaryEllipseDetector.EllipseInfo> ellipses, List<List<EllipsesIntoClusters.Node>> output) Processes the ellipses and creates clusters.- Parameters:
ellipses
- Set of unordered ellipsesoutput
- Resulting found clusters. Cleared automatically. Returned lists are recycled on next call.
-
getMaxDistanceToMajorAxisRatio
public double getMaxDistanceToMajorAxisRatio() -
setMaxDistanceToMajorAxisRatio
public void setMaxDistanceToMajorAxisRatio(double maxDistanceToMajorAxisRatio) -
getSizeSimilarityTolerance
public double getSizeSimilarityTolerance() -
setSizeSimilarityTolerance
public void setSizeSimilarityTolerance(double sizeSimilarityTolerance) -
getMinimumClusterSize
public int getMinimumClusterSize() -
setMinimumClusterSize
public void setMinimumClusterSize(int minimumClusterSize)
-