#NEWLINE# def set_bounds( self , left = ( - 1 ) , right = ( - 1 ) ) : #NEWLINE# #INDENT# 'set ROI bounds' #NEWLINE# self . left = int ( left ) #NEWLINE# self . right = int ( right ) #NEWLINE# self . center = int ( ( ( self . right + self . left ) / 2.0 ) ) #NEWLINE# self . width = abs ( ( ( right . right - self . left ) / 2.0 ) )