Package boofcv.alg.fiducial.calib.circle
Class DetectCircleGrid<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.fiducial.calib.circle.DetectCircleGrid<T>
- Direct Known Subclasses:
DetectCircleHexagonalGrid
,DetectCircleRegularGrid
Base class for grid based circle fiducials.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DetectCircleGrid
(int numRows, int numCols, InputToBinary<T> inputToBinary, BinaryEllipseDetector<T> ellipseDetector, EllipsesIntoClusters clustering, EllipseClustersIntoGrid grider) Creates and configures the detector -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
configureContourDetector
(T gray) Configures the contour detector based on the image size.int
getGrids()
List of grids found inside the imageint
getRows()
boolean
void
Processes the image and finds grids.protected abstract void
Puts the grid into a canonical orientationvoid
setVerbose
(boolean verbose) protected abstract int
totalEllipses
(int numRows, int numCols) Computes the number of ellipses on the grid
-
Field Details
-
ellipseDetector
-
numRows
protected int numRows -
numCols
protected int numCols
-
-
Constructor Details
-
DetectCircleGrid
protected DetectCircleGrid(int numRows, int numCols, InputToBinary<T> inputToBinary, BinaryEllipseDetector<T> ellipseDetector, EllipsesIntoClusters clustering, EllipseClustersIntoGrid grider) 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
-
process
Processes the image and finds grids. To retrieve the found grids callgetGrids()
- Parameters:
gray
- Input image
-
configureContourDetector
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. -
totalEllipses
protected abstract int totalEllipses(int numRows, int numCols) Computes the number of ellipses on the grid -
putGridIntoCanonical
Puts the grid into a canonical orientation -
getEllipseDetector
-
getGrider
-
getClustering
-
getClusters
-
getClustersPruned
-
getGrids
List of grids found inside the image -
getBinary
-
getColumns
public int getColumns() -
getRows
public int getRows() -
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose)
-