private void findLinesInRegion ( List < LineSegment2D_F32 > gridLines ) { List < Edgel > list = edgels . copyIntoList ( null ) ; int iterations = 0 ; // exit if not enough points or max iterations exceeded while ( iterations ++ < maxDetectLines ) { if ( ! robustMatcher . process ( list ) ) break ; // remove the found edges from the main list List < Edgel > matchSet = robustMatcher . getMatchSet ( ) ; // make sure the match set is large enough if ( matchSet . size ( ) < minInlierSize ) break ; for ( Edgel e : matchSet ) { list . remove ( e ) ; } gridLines . add ( convertToLineSegment ( matchSet , robustMatcher . getModelParameters ( ) ) ) ; } }
Searches for lines inside inside the region ..