#NEWLINE# def combine( left , right ) : #NEWLINE# #INDENT# 'Stack images horizontally.\n    ' #NEWLINE# h = max ( left . shape [ 0 ] , right . shape [ 0 ] ) #NEWLINE# w = ( left . shape [ 1 ] + right . shape [ 1 ] ) #NEWLINE# hoff = left . shape [ 0 ] #NEWLINE# shape = list ( left . shape ) #NEWLINE# shape [ 0 ] = h #NEWLINE# shape [ 1 ] = w #NEWLINE# comb = np . zeros ( tuple ( shape ) , left . dtype ) #NEWLINE# comb [ : left . shape [ 0 ] , : left . shape [ 1 ] ] = left #NEWLINE# comb [ : right . shape [ 0 ] , left . shape [ 1 ] : ] = right #NEWLINE# return comb