#NEWLINE# def invert( self , data ) : #NEWLINE# #INDENT# '\n        This is a simple interface to transform images or points_b.  Simply\n        call invert with the points_b or list of points_b and it will automatically\n        call the correct function.\n        \n        @param data: an image, point, or list of points_b.\n        ' #NEWLINE# if isinstance ( data , pv . Image ) : #NEWLINE# #INDENT# return self . invertImage ( data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( data , pv . Point ) : #NEWLINE# #INDENT# return self . invertPoint ( data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . invertPoints ( data )