public class SquaresIntoCrossClusters extends SquaresIntoClusters
| Modifier and Type | Field and Description |
|---|---|
int |
maxNeighbors |
clusters, graph, nodes, open| Constructor and Description |
|---|
SquaresIntoCrossClusters(double maxCornerDistance,
int maxNeighbors)
Declares data structures and configures algorithm
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMaxCornerDistance() |
java.util.List<java.util.List<SquareNode>> |
process(java.util.List<boofcv.alg.shapes.polygon.DetectPolygonFromContour.Info> squares)
Processes the unordered set of squares and creates a graph out of them using prior knowledge and geometric
constraints.
|
void |
setMaxCornerDistance(double maxCornerDistance) |
findClusters, recycleDatapublic SquaresIntoCrossClusters(double maxCornerDistance,
int maxNeighbors)
maxCornerDistance - Maximum distance two corners can be in pixels.maxNeighbors - Max number of neighbors it will consider. Try 4 or -1 for allpublic java.util.List<java.util.List<SquareNode>> process(java.util.List<boofcv.alg.shapes.polygon.DetectPolygonFromContour.Info> squares)
squares - Set of squarespublic double getMaxCornerDistance()
public void setMaxCornerDistance(double maxCornerDistance)