public abstract class DetectCircleGrid<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> |
ellipseDetector |
protected int |
numCols |
protected int |
numRows |
| Constructor and Description |
|---|
DetectCircleGrid(int numRows,
int numCols,
boofcv.abst.filter.binary.InputToBinary<T> inputToBinary,
boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> ellipseDetector,
EllipsesIntoClusters clustering,
EllipseClustersIntoGrid grider)
Creates and configures the detector
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configureContourDetector(T gray)
Configures the contour detector based on the image size.
|
boofcv.struct.image.GrayU8 |
getBinary() |
java.util.List<georegression.struct.point.Point2D_F64> |
getCalibrationPoints() |
EllipsesIntoClusters |
getClustering() |
java.util.List<java.util.List<EllipsesIntoClusters.Node>> |
getClusters() |
java.util.List<java.util.List<EllipsesIntoClusters.Node>> |
getClustersPruned() |
int |
getColumns() |
boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> |
getEllipseDetector() |
EllipseClustersIntoGrid |
getGrider() |
java.util.List<EllipseClustersIntoGrid.Grid> |
getGrids()
List of grids found inside the image
|
int |
getRows() |
boolean |
isVerbose() |
void |
process(T gray)
Processes the image and finds grids.
|
protected abstract void |
putGridIntoCanonical(EllipseClustersIntoGrid.Grid g)
Puts the grid into a canonical orientation
|
void |
setVerbose(boolean verbose) |
protected abstract int |
totalEllipses(int numRows,
int numCols)
Computes the number of ellipses on the grid
|
protected boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T extends boofcv.struct.image.ImageGray<T>> ellipseDetector
protected int numRows
protected int numCols
public DetectCircleGrid(int numRows,
int numCols,
boofcv.abst.filter.binary.InputToBinary<T> inputToBinary,
boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> ellipseDetector,
EllipsesIntoClusters clustering,
EllipseClustersIntoGrid grider)
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 ellipsespublic void process(T gray)
getGrids()gray - Input imageprotected abstract void configureContourDetector(T gray)
protected abstract int totalEllipses(int numRows,
int numCols)
protected abstract void putGridIntoCanonical(EllipseClustersIntoGrid.Grid g)
public boofcv.alg.shapes.ellipse.BinaryEllipseDetector<T> getEllipseDetector()
public EllipseClustersIntoGrid getGrider()
public EllipsesIntoClusters getClustering()
public java.util.List<java.util.List<EllipsesIntoClusters.Node>> getClusters()
public java.util.List<java.util.List<EllipsesIntoClusters.Node>> getClustersPruned()
public java.util.List<EllipseClustersIntoGrid.Grid> getGrids()
public java.util.List<georegression.struct.point.Point2D_F64> getCalibrationPoints()
public boofcv.struct.image.GrayU8 getBinary()
public int getColumns()
public int getRows()
public boolean isVerbose()
public void setVerbose(boolean verbose)