View selectOriginNode ( ) { double bestScore = 0 ; View best = null ; if ( verbose != null ) verbose . println ( "selectOriginNode" ) ; for ( int i = 0 ; i < graph . nodes . size ( ) ; i ++ ) { double score = scoreNodeAsOrigin ( graph . nodes . get ( i ) ) ; if ( score > bestScore ) { bestScore = score ; best = graph . nodes . get ( i ) ; } if ( verbose != null ) verbose . printf ( " [%2d] score = %s\n" , i , score ) ; } if ( verbose != null && best != null ) verbose . println ( " selected = " + best . index ) ; return best ; }
Select the view which will be coordinate system s origin . This should be a well connected node which have favorable geometry to the other views it s connected to .