public class DetectCircleRegularGrid<T extends boofcv.struct.image.ImageGray<T>> extends DetectCircleGrid<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.
ellipseDetector, numCols, numRows| Constructor and Description |
|---|
DetectCircleRegularGrid(int numRows,
int numCols,
boofcv.abst.filter.binary.InputToBinary<T> inputToBinary,
boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> ellipseDetector,
EllipsesIntoClusters clustering)
Creates and configures the detector
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureContourDetector(T gray)
Configures the contour detector based on the image size.
|
protected void |
putGridIntoCanonical(EllipseClustersIntoGrid.Grid g)
Puts the grid into a canonical orientation
|
int |
totalEllipses(int numRows,
int numCols)
Computes the number of ellipses on the grid
|
getBinary, getCalibrationPoints, getClustering, getClusters, getClustersPruned, getColumns, getEllipseDetector, getGrider, getGrids, getRows, isVerbose, process, setVerbosepublic DetectCircleRegularGrid(int numRows,
int numCols,
boofcv.abst.filter.binary.InputToBinary<T> inputToBinary,
boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> ellipseDetector,
EllipsesIntoClusters clustering)
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 ellipsesprotected void configureContourDetector(T gray)
DetectCircleGridconfigureContourDetector in class DetectCircleGrid<T extends boofcv.struct.image.ImageGray<T>>public int totalEllipses(int numRows,
int numCols)
DetectCircleGridtotalEllipses in class DetectCircleGrid<T extends boofcv.struct.image.ImageGray<T>>protected void putGridIntoCanonical(EllipseClustersIntoGrid.Grid g)
putGridIntoCanonical in class DetectCircleGrid<T extends boofcv.struct.image.ImageGray<T>>