Class SquareGrid
java.lang.Object
boofcv.alg.fiducial.calib.squares.SquareGrid
Data structure which describes a set of
SquareNode
as a grid. Must be a complete grid with no
missing elements. CW or CCW orientation is not specified.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int row, int col) Looks up the node based on its coordinate.getCornerByIndex
(int index) Returns the corner specified by its index.int
getCornerIndex
(SquareNode node) Returns the index of the corner.int
indexOf
(int row, int col) void
reset()
void
set
(int row, int col, SquareNode node)
-
Field Details
-
nodes
-
columns
public int columns -
rows
public int rows
-
-
Constructor Details
-
SquareGrid
public SquareGrid()
-
-
Method Details
-
reset
public void reset() -
get
Looks up the node based on its coordinate. negative values wrap -
set
-
indexOf
public int indexOf(int row, int col) -
getCornerByIndex
Returns the corner specified by its index.- Parameters:
index
- 0 to 3, inclusive
-
getCornerIndex
Returns the index of the corner. 0 = (0,0), 1 = (0,w-1), 2 = (h-1,w-1), 3 = (h-1,0)
-