Package boofcv.alg.fiducial.calib.circle
Class DetectCircleRegularGrid<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.fiducial.calib.circle.DetectCircleGrid<T>
boofcv.alg.fiducial.calib.circle.DetectCircleRegularGrid<T>
Detects regular grids of circles, see below. A valid grid is in counter-clockwise order and if there are multiple possible solution the solution with corner (0,0) closest to the pixel coordinate (0,0) is selected
For each circle there is are four control points. Each control point corresponds to the tangent line connecting the vertical and horizontal neigbors. Tangent points are used since they are invariant under perspective distortion.
-
Field Summary
Fields inherited from class boofcv.alg.fiducial.calib.circle.DetectCircleGrid
ellipseDetector, numCols, numRows
-
Constructor Summary
ConstructorDescriptionDetectCircleRegularGrid
(int numRows, int numCols, InputToBinary<T> inputToBinary, BinaryEllipseDetector<T> ellipseDetector, EllipsesIntoClusters clustering) Creates and configures the detector -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureContourDetector
(T gray) Configures the contour detector based on the image size.protected void
Puts the grid into a canonical orientationint
totalEllipses
(int numRows, int numCols) Computes the number of ellipses on the gridMethods inherited from class boofcv.alg.fiducial.calib.circle.DetectCircleGrid
getBinary, getClustering, getClusters, getClustersPruned, getColumns, getEllipseDetector, getGrider, getGrids, getRows, isVerbose, process, setVerbose
-
Constructor Details
-
DetectCircleRegularGrid
public DetectCircleRegularGrid(int numRows, int numCols, InputToBinary<T> inputToBinary, BinaryEllipseDetector<T> ellipseDetector, EllipsesIntoClusters clustering) Creates and configures the detector- Parameters:
numRows
- number of rows in gridnumCols
- number of columns in gridinputToBinary
- Converts the input image into a binary imageellipseDetector
- Detects ellipses inside the imageclustering
- Finds clusters of ellipses
-
-
Method Details
-
configureContourDetector
Description copied from class:DetectCircleGrid
Configures the contour detector based on the image size. Setting a maximum contour and turning off recording of inner contours and improve speed and reduce the memory foot print significantly.- Specified by:
configureContourDetector
in classDetectCircleGrid<T extends ImageGray<T>>
-
totalEllipses
public int totalEllipses(int numRows, int numCols) Description copied from class:DetectCircleGrid
Computes the number of ellipses on the grid- Specified by:
totalEllipses
in classDetectCircleGrid<T extends ImageGray<T>>
-
putGridIntoCanonical
Puts the grid into a canonical orientation- Specified by:
putGridIntoCanonical
in classDetectCircleGrid<T extends ImageGray<T>>
-