boofcv.alg.fiducial.calib.squares
Class SquareGrid
- java.lang.Object
-
- boofcv.alg.fiducial.calib.squares.SquareGrid
-
public class SquareGrid extends java.lang.ObjectData structure which describes a set ofSquareNodeas a grid. Must be a complete grid with no missing elements. CW or CCW orientation is not specified.
-
-
Field Summary
Fields Modifier and Type Field and Description intcolumnsjava.util.List<SquareNode>nodesintrows
-
Constructor Summary
Constructors Constructor and Description SquareGrid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SquareNodeget(int row, int col)Looks up the node based on its coordinate.SquareNodegetCornerByIndex(int index)Returns the corner specified by its index.intgetCornerIndex(SquareNode node)Returns the index of the corner.intindexOf(int row, int col)voidreset()voidset(int row, int col, SquareNode node)
-
-
-
Field Detail
-
nodes
public java.util.List<SquareNode> nodes
-
columns
public int columns
-
rows
public int rows
-
-
Method Detail
-
reset
public void reset()
-
get
public SquareNode get(int row, int col)
Looks up the node based on its coordinate. negative values wrap
-
set
public void set(int row, int col, SquareNode node)
-
indexOf
public int indexOf(int row, int col)
-
getCornerByIndex
public SquareNode getCornerByIndex(int index)
Returns the corner specified by its index.- Parameters:
index- 0 to 3, inclusive
-
getCornerIndex
public int getCornerIndex(SquareNode node)
Returns the index of the corner. 0 = (0,0), 1 = (0,w-1), 2 = (h-1,w-1), 3 = (h-1,0)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG