public void findPatterns ( GrayF32 input ) { found . reset ( ) ; detector . process ( input ) ; clusterFinder . process ( detector . getCorners ( ) . toList ( ) ) ; FastQueue < ChessboardCornerGraph > clusters = clusterFinder . getOutputClusters ( ) ; for ( int clusterIdx = 0 ; clusterIdx < clusters . size ; clusterIdx ++ ) { ChessboardCornerGraph c = clusters . get ( clusterIdx ) ; if ( ! clusterToGrid . convert ( c , found . grow ( ) ) ) { found . removeTail ( ) ; } } }
Processes the image and searches for all chessboard patterns .