public class DetectChessSquaresBinary
extends java.lang.Object
| Constructor and Description |
|---|
DetectChessSquaresBinary(int numCols,
int numRows,
int minContourSize)
Configures chess board detector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkGraphStructure(java.util.List<QuadBlob> blobs)
Counts the number of connections each node has.
|
static void |
connect(java.util.List<QuadBlob> blobs)
Connect blobs together based on corner distance.
|
georegression.struct.shapes.Polygon2D_I32 |
getBoundPolygon() |
boofcv.struct.ImageRectangle |
getBoundRect() |
java.util.List<georegression.struct.point.Point2D_I32> |
getCandidatePoints()
Returns corners that are near a another square
|
DetectQuadBlobsBinary |
getDetectBlobs() |
java.util.List<QuadBlob> |
getGraphBlobs() |
boolean |
process(boofcv.struct.image.ImageUInt8 binary)
Detects chessboard in the binary image.
|
void |
setMinimumContourSize(int minContourSize)
Adjusts the minimum contour for a square blob
|
public DetectChessSquaresBinary(int numCols,
int numRows,
int minContourSize)
numCols - Number of columns in square gridnumRows - Number of rows in square gridminContourSize - Prune blobs which have a contour with few than this number of pixels.public boolean process(boofcv.struct.image.ImageUInt8 binary)
binary - Binary image of chessboardpublic static void connect(java.util.List<QuadBlob> blobs)
public boolean checkGraphStructure(java.util.List<QuadBlob> blobs)
public void setMinimumContourSize(int minContourSize)
minContourSize - The minimum contour size. Try 10public DetectQuadBlobsBinary getDetectBlobs()
public java.util.List<QuadBlob> getGraphBlobs()
public boofcv.struct.ImageRectangle getBoundRect()
public georegression.struct.shapes.Polygon2D_I32 getBoundPolygon()
public java.util.List<georegression.struct.point.Point2D_I32> getCandidatePoints()