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
ConstructorsConstructorDescriptionDetectCircleRegularGrid(int numRows, int numCols, InputToBinary<T> inputToBinary, BinaryEllipseDetector<T> ellipseDetector, EllipsesIntoClusters clustering) Creates and configures the detector -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureContourDetector(T gray) Configures the contour detector based on the image size.protected voidPuts the grid into a canonical orientationinttotalEllipses(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:DetectCircleGridConfigures 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:
configureContourDetectorin classDetectCircleGrid<T extends ImageGray<T>>
-
totalEllipses
public int totalEllipses(int numRows, int numCols) Description copied from class:DetectCircleGridComputes the number of ellipses on the grid- Specified by:
totalEllipsesin classDetectCircleGrid<T extends ImageGray<T>>
-
putGridIntoCanonical
Puts the grid into a canonical orientation- Specified by:
putGridIntoCanonicalin classDetectCircleGrid<T extends ImageGray<T>>
-