def _rgba2img(rgba):
 assert (type(rgba) is list)
 return Image.merge('RGBA', [_arr2img(numpy.round((band * 255.0)).astype(numpy.ubyte)) for band in rgba])

def _rgba2img ( rgba ) : assert ( type ( rgba ) is list ) return Image . merge ( 'RGBA' , [ _arr2img ( numpy . round ( ( band * 255.0 ) ) . astype ( numpy . ubyte ) ) for band in rgba ] )
convert four numeric array objects to pil image .