Class SquaresIntoCrossClusters
java.lang.Object
boofcv.alg.fiducial.calib.squares.SquaresIntoClusters
boofcv.alg.fiducial.calib.squares.SquaresIntoCrossClusters
Processes the detected squares in the image and connects them into clusters in which the corners of each square
almost touches the corner of a neighbor.
-
Field Summary
Fields inherited from class boofcv.alg.fiducial.calib.squares.SquaresIntoClusters
clusters, graph, nodes, open
-
Constructor Summary
ConstructorDescriptionSquaresIntoCrossClusters
(double maxCornerDistance, int maxNeighbors) Declares data structures and configures algorithm -
Method Summary
Modifier and TypeMethodDescriptiondouble
process
(List<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) Methods inherited from class boofcv.alg.fiducial.calib.squares.SquaresIntoClusters
findClusters, recycleData
-
Field Details
-
maxNeighbors
public int maxNeighbors
-
-
Constructor Details
-
SquaresIntoCrossClusters
public SquaresIntoCrossClusters(double maxCornerDistance, int maxNeighbors) Declares data structures and configures algorithm- Parameters:
maxCornerDistance
- Maximum distance two corners can be in pixels.maxNeighbors
- Max number of neighbors it will consider. Try 4 or -1 for all
-
-
Method Details
-
process
Processes the unordered set of squares and creates a graph out of them using prior knowledge and geometric constraints.- Parameters:
squares
- Set of squares- Returns:
- List of graphs. All data structures are recycled on the next call to process().
-
getMaxCornerDistance
public double getMaxCornerDistance() -
setMaxCornerDistance
public void setMaxCornerDistance(double maxCornerDistance)
-