#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# o = self . create_output_file ( ) #NEWLINE# r = self . get_input ( 'r' ) #NEWLINE# g = self . get_input ( 'g' ) #NEWLINE# b = self . get_input ( 'b' ) #NEWLINE# a = self . force_get_input ( 'a' ) #NEWLINE# if ( o is not None ) : #NEWLINE# #INDENT# self . run ( r . name , g . name , b . name , a . name , '-channel' , 'RGBA' , '-combine' , o . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . run ( r . name , g . name , b . name , '-channel' , 'RGB' , '-combine' , o . name ) #NEWLINE# #UNINDENT# self . set_output ( 'output' , o )