crass.py 文件源码

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

项目:crass 作者: UB-Mannheim 项目源码 文件源码
def get_uintimg(image):
    if len(image.shape) > 2:
        uintimage = color.rgb2gray(copy.deepcopy(image))
    else:
        uintimage = copy.deepcopy(image)
    if uintimage.dtype == "float64":
        with warnings.catch_warnings():
            # Transform rotate convert the img to float and save convert it back
            warnings.simplefilter("ignore")
            uintimage = ski.img_as_uint(uintimage, force_copy=True)
    return uintimage
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号