#NEWLINE# def __sim_fill( self , i , j ) : #NEWLINE# #INDENT# ( ( bi0 , bi1 , bi2 , bi3 ) , ( bj0 , bj1 , bj2 , bj3 ) ) = ( self . bbox [ i ] , self . bbox [ j ] ) #NEWLINE# ( bij0 , bij1 , bij2 , bij3 ) = ( min ( bi0 , bj0 ) , min ( bi1 , bj1 ) , max ( bi2 , bj2 ) , max ( bi3 , bj3 ) ) #NEWLINE# bij_size = ( ( bij2 - bij0 ) * ( bij3 - bij1 ) ) #NEWLINE# return ( 1.0 - ( ( ( bij_size - self . size [ i ] ) - self . size [ bij2 ] ) / self . imsize ) )