boofcv.alg.fiducial.calib.chess
Class DetectChessSquarePoints<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.fiducial.calib.chess.DetectChessSquarePoints<T>
-
public class DetectChessSquarePoints<T extends ImageGray> extends java.lang.ObjectGiven a binary image it detects the presence of chess board calibration grids. 1) Detect blobs in binary image and select square like ones. 2) Create two grids, inner and outer, 3) Put the grids together, 4) extract initial estimate for corners
-
-
Constructor Summary
Constructors Constructor and Description DetectChessSquarePoints(int numRows, int numCols, double maxCornerDistance, BinaryPolygonDetector<T> detectorSquare)Configures chess board detector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FastQueue<Point2D_F64>getCalibrationPoints()BinaryPolygonDetector<T>getDetectorSquare()java.util.List<java.util.List<SquareNode>>getGraphs()CrossClustersIntoGridsgetGrids()intgetNumCols()intgetNumRows()SquaresIntoCrossClustersgetShapeToClusters()booleanprocess(T input, GrayU8 binary)Detects chessboard in the binary image.
-
-
-
Constructor Detail
-
DetectChessSquarePoints
public DetectChessSquarePoints(int numRows, int numCols, double maxCornerDistance, BinaryPolygonDetector<T> detectorSquare)Configures chess board detector.- Parameters:
numRows- Number of rows in square gridnumCols- Number of columns in square gridmaxCornerDistance- Maximum distance in pixels that two "overlapping" corners can be from each other.
-
-
Method Detail
-
process
public boolean process(T input, GrayU8 binary)
Detects chessboard in the binary image. Square corners must be disconnected. Returns true if a chessboard was found, false otherwise.- Parameters:
input- Original input image.binary- Binary image of chessboard- Returns:
- True if successful.
-
getGraphs
public java.util.List<java.util.List<SquareNode>> getGraphs()
-
getShapeToClusters
public SquaresIntoCrossClusters getShapeToClusters()
-
getGrids
public CrossClustersIntoGrids getGrids()
-
getDetectorSquare
public BinaryPolygonDetector<T> getDetectorSquare()
-
getCalibrationPoints
public FastQueue<Point2D_F64> getCalibrationPoints()
-
getNumRows
public int getNumRows()
-
getNumCols
public int getNumCols()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG