boofcv.alg.fiducial.calib.squares
Class SquareGridTools
- java.lang.Object
-
- boofcv.alg.fiducial.calib.squares.SquareGridTools
-
public class SquareGridTools extends java.lang.ObjectA class for manipulatingSquareGrid
-
-
Constructor Summary
Constructors Constructor and Description SquareGridTools()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidboundingPolygonCCW(SquareGrid grid, Polygon2D_F64 bounding)Get outside corner polygon around the grid.booleancheckFlip(SquareGrid grid)Checks to see if it needs to be flipped.doublecomputeSize(SquareGrid grid)voidflipColumns(SquareGrid grid)Flips the order of columnsvoidflipRows(SquareGrid grid)Flips the order of rowsbooleanorderSquareCorners(SquareGrid grid)Adjust the corners in the square's polygon so that they are aligned along the grids overall lengthvoidputIntoCanonical(SquareGrid grid)There can be 2 or 4 possible orientations which are equally valid solutions.voidreverse(SquareGrid grid)voidrotateCCW(SquareGrid grid)static intsign(LineGeneral2D_F64 line, Point2D_F64 p)voidtranspose(SquareGrid grid)Transposes the grid
-
-
-
Method Detail
-
putIntoCanonical
public void putIntoCanonical(SquareGrid grid)
There can be 2 or 4 possible orientations which are equally valid solutions. For sake of consistency it will make the (0,0) coordinate be closest to the origin of the image coordinate system.
-
rotateCCW
public void rotateCCW(SquareGrid grid)
-
reverse
public void reverse(SquareGrid grid)
-
checkFlip
public boolean checkFlip(SquareGrid grid)
Checks to see if it needs to be flipped. Flipping is required if X and Y axis in 2D grid are not CCW.
-
computeSize
public double computeSize(SquareGrid grid)
-
transpose
public void transpose(SquareGrid grid)
Transposes the grid
-
flipRows
public void flipRows(SquareGrid grid)
Flips the order of rows
-
flipColumns
public void flipColumns(SquareGrid grid)
Flips the order of columns
-
boundingPolygonCCW
public void boundingPolygonCCW(SquareGrid grid, Polygon2D_F64 bounding)
Get outside corner polygon around the grid. The grid is assumed to be in CCW orientation.
-
orderSquareCorners
public boolean orderSquareCorners(SquareGrid grid)
Adjust the corners in the square's polygon so that they are aligned along the grids overall length- Returns:
- true if valid grid or false if not
-
sign
public static int sign(LineGeneral2D_F64 line, Point2D_F64 p)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG