image_func.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:Image-Processing-and-Steganogrphy 作者: motkeg 项目源码 文件源码
def Color_Quantization(img):
    '''Color quantization is the process 
    that drastically reduces the number of colors used in a digital color image 
    by approximating the original pixels with their nearest representative colors'''
    img=img.filter(ImageFilter.SMOOTH)
    result = img.convert('P', palette=ADAPTIVE, colors=4)
    result.save('C:\Users\USER\workspace\Final Project\src\outputImage\OUTEqualization.png')
    result.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号