'Convert 3 arrays, image_r, image_g, and image_b into an 8-bit RGB image.
Parameters
image_r : `~numpy.ndarray`
Image to map to red.
image_g : `~numpy.ndarray`
Image to map to green.
image_b : `~numpy.ndarray`
Image to map to blue.
Returns
RGBimage : `~numpy.ndarray`
RGB (integer, 8-bits per channel) color image as an NxNx3 numpy array.'

def make_rgb_image(self, image_r, image_g, image_b):

    image_r = np.asarray(image_r)
    image_g = np.asarray(image_g)
    image_b = np.asarray(image_b)
    if ((image_r.shape != image_g.shape) or (image_g.shape != image_b.shape)):
        msg = u'The    image    shapes    must    match.    r:    {},    g:    {}    b:    {}'
        raise ValueError(msg.format(image_r.shape, image_g.shape, image_b.shape))
    return np.dstack(self._convert_images_to_uint8(image_r, image_g, image_b)).astype(np.uint8)
