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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionintdoublestatic final intdouble[]double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleFinds the Euclidean distance squared of the closest corner to point p@Nullable SquareEdgefindEdge(SquareNode target) intfindEdgeIndex(SquareNode target) intComputes the number of edges attached to this nodevoidreset()Discards previous informationdoublevoid
-
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
-