Package boofcv.alg.fiducial.calib.chess
Class DetectChessboardBinaryPattern<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.fiducial.calib.chess.DetectChessboardBinaryPattern<T>
Detects calibration points inside a chessboard calibration target. First the image
is thresholded to create a binary image for square detection, then the binary image is eroded to make sure
the squares don't touch. After that DetectChessboardSquarePoints
is called and it detects and sorts
the squares.
The found control points are ensured to be returned in a row-major format with the correct number of rows and columns, with a counter clockwise ordering. Note that when viewed on the monitor this will appear to be clockwise because the y-axis points down. If there are multiple valid solution then the solution with the (0,0) grid point closest top the origin is selected.
-
Constructor Summary
ConstructorDescriptionDetectChessboardBinaryPattern
(int numRows, int numCols, ConfigLength maxCornerDistance, DetectPolygonBinaryGrayRefine<T> detectorSquare, InputToBinary<T> inputToBinary) Configures detection parameters -
Method Summary
-
Constructor Details
-
DetectChessboardBinaryPattern
public DetectChessboardBinaryPattern(int numRows, int numCols, ConfigLength maxCornerDistance, DetectPolygonBinaryGrayRefine<T> detectorSquare, InputToBinary<T> inputToBinary) Configures detection parameters- Parameters:
numRows
- Number of rows in the grid. Target dependent.numCols
- Number of columns in the grid. Target dependent.maxCornerDistance
- The maximum distance two square corners can be from each other in pixels
-
-
Method Details
-
reset
public void reset()Forgets any past history and resets the detector -
process
-
getCalibrationPoints
-
getColumns
public int getColumns() -
getRows
public int getRows()
-