boofcv.alg.fiducial.calib.squares
Class SquareNode
- java.lang.Object
-
- boofcv.alg.fiducial.calib.squares.SquareNode
-
public class SquareNode extends java.lang.ObjectGraph representation of square blobs. Each blob can be connected to at most 4 other shapes which are directly adjacent of one of the sides.
-
-
Field Summary
Fields Modifier and Type Field and Description Point2D_F64centerPolygon2D_F64cornersSquareEdge[]edgesintgraphdoublelargestSidestatic intRESET_GRAPHdouble[]sideLengthsGrowQueue_Btouch
-
Constructor Summary
Constructors Constructor and Description SquareNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubledistanceSqCorner(Point2D_F64 p)Finds the Euclidean distance squared of the closest corner to point pintgetNumberOfConnections()Computes the number of edges attached to this nodevoidreset()Discards previous informationdoublesmallestSideLength()voidupdateArrayLength()
-
-
-
Field Detail
-
RESET_GRAPH
public static final int RESET_GRAPH
- See Also:
- Constant Field Values
-
corners
public Polygon2D_F64 corners
-
touch
public GrowQueue_B touch
-
center
public Point2D_F64 center
-
sideLengths
public double[] sideLengths
-
largestSide
public double largestSide
-
graph
public int graph
-
edges
public SquareEdge[] edges
-
-
Method Detail
-
distanceSqCorner
public double distanceSqCorner(Point2D_F64 p)
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()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG