ImageOps.py 文件源码

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

项目:CNCGToolKit 作者: cineuse 项目源码 文件源码
def deform(image, deformer, resample=Image.BILINEAR):
    "Deform image using the given deformer"
    return image.transform(
        image.size, Image.MESH, deformer.getmesh(image), resample
        )

##
# Equalize the image histogram.  This function applies a non-linear
# mapping to the input image, in order to create a uniform
# distribution of grayscale values in the output image.
#
# @param image The image to equalize.
# @param mask An optional mask.  If given, only the pixels selected by
#     the mask are included in the analysis.
# @return An image.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号