Class DetectCircleGrid<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.fiducial.calib.circle.DetectCircleGrid<T>
Direct Known Subclasses:
DetectCircleHexagonalGrid, DetectCircleRegularGrid

public abstract class DetectCircleGrid<T extends ImageGray<T>> extends Object
Base class for grid based circle fiducials.
  • Field Details

  • 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 grid
      numCols - number of columns in grid
      inputToBinary - Converts the input image into a binary image
      ellipseDetector - Detects ellipses inside the image
      clustering - Finds clusters of ellipses
  • Method Details

    • process

      public void process(T gray)
      Processes the image and finds grids. To retrieve the found grids call getGrids()
      Parameters:
      gray - Input image
    • configureContourDetector

      protected abstract void configureContourDetector(T gray)
      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

      protected abstract void putGridIntoCanonical(EllipseClustersIntoGrid.Grid g)
      Puts the grid into a canonical orientation
    • getEllipseDetector

      public BinaryEllipseDetector<T> getEllipseDetector()
    • getGrider

      public EllipseClustersIntoGrid getGrider()
    • getClustering

      public EllipsesIntoClusters getClustering()
    • getClusters

      public List<List<EllipsesIntoClusters.Node>> getClusters()
    • getClustersPruned

      public List<List<EllipsesIntoClusters.Node>> getClustersPruned()
    • getGrids

      public List<EllipseClustersIntoGrid.Grid> getGrids()
      List of grids found inside the image
    • getBinary

      public GrayU8 getBinary()
    • getColumns

      public int getColumns()
    • getRows

      public int getRows()
    • isVerbose

      public boolean isVerbose()
    • setVerbose

      public void setVerbose(boolean verbose)