Python scipy.io 模块,imsave() 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用scipy.io.imsave()

项目:Colorization.tensorflow    作者:shekkizh    | 项目源码 | 文件源码
def save_image(image, save_dir, name):
    """
    Save image by unprocessing and converting to rgb.
    :param image: iamge to save
    :param save_dir: location to save image at
    :param name: prefix to save filename
    :return:
    """
    image = color.lab2rgb(image)
    io.imsave(os.path.join(save_dir, name + ".png"), image)