def make_lupton_rgb(image_r, image_g, image_b, minimum=0, stretch=5, Q=8, filename=None):
 asinhMap = AsinhMapping(minimum, stretch, Q)
 rgb = asinhMap.make_rgb_image(image_r, image_g, image_b)
 if filename:
  import matplotlib.image
  matplotlib.image.imsave(filename, rgb, origin=u'lower')
 return rgb

def make_lupton_rgb ( image_r , image_g , image_b , minimum = 0 , stretch = 5 , Q = 8 , filename = None ) : asinhMap = AsinhMapping ( minimum , stretch , Q ) rgb = asinhMap . make_rgb_image ( image_r , image_g , image_b ) if filename : import matplotlib . image matplotlib . image . imsave ( filename , rgb , origin = u'lower' ) return rgb
return a red/green/blue color image from up to 3 images using an asinh stretch .