Motion selectCoordinateBase ( View view ) { double bestScore = 0 ; Motion best = null ; if ( verbose != null ) verbose . println ( "selectCoordinateBase" ) ; for ( int i = 0 ; i < view . connections . size ( ) ; i ++ ) { Motion e = view . connections . get ( i ) ; double s = e . scoreTriangulation ( ) ; if ( verbose != null ) verbose . printf ( " [%2d] score = %s\n" , i , s ) ; if ( s > bestScore ) { bestScore = s ; best = e ; } } return best ; }
Select motion which will define the coordinate system .