def blend_channels_linear_light(bottom_chan, top_chan):
 return numpy.clip(((bottom_chan[:, :] + (2 * top_chan[:, :])) - 1), 0, 1)

def blend_channels_linear_light ( bottom_chan , top_chan ) : return numpy . clip ( ( ( bottom_chan [ : , : ] + ( 2 * top_chan [ : , : ] ) ) - 1 ) , 0 , 1 )
return combination of bottom and top channels .