Class SquareNode
java.lang.Object
boofcv.alg.fiducial.calib.squares.SquareNode
- Direct Known Subclasses:
AztecFinderPatternDetector.Layer
,PositionPatternNode
Graph representation of square blobs. Each blob can be connected to at most 4 other shapes which are directly
adjacent of one of the sides. If lens distortion is known then all coordinates and lengths are in undistorted
coordinates. This also means that in the undistorted cases pixels can be outside the image
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
double
static final int
double[]
double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Finds the Euclidean distance squared of the closest corner to point p@Nullable SquareEdge
findEdge
(SquareNode target) int
findEdgeIndex
(SquareNode target) int
Computes the number of edges attached to this nodevoid
reset()
Discards previous informationdouble
void
-
Field Details
-
RESET_GRAPH
public static final int RESET_GRAPH- See Also:
-
square
-
touch
-
center
-
sideLengths
public double[] sideLengths -
largestSide
public double largestSide -
smallestSide
public double smallestSide -
graph
public int graph -
edges
-
-
Constructor Details
-
SquareNode
public SquareNode()
-
-
Method Details
-
distanceSqCorner
Finds the Euclidean distance squared of the closest corner to point p -
reset
public void reset()Discards previous information -
updateArrayLength
public void updateArrayLength() -
getNumberOfConnections
public int getNumberOfConnections()Computes the number of edges attached to this node -
smallestSideLength
public double smallestSideLength() -
findEdge
-
findEdgeIndex
-