当前位置: 首页>>代码示例>>Python>>正文


Python restoration.denoise_tv_chambolle方法代码示例

本文整理汇总了Python中skimage.restoration.denoise_tv_chambolle方法的典型用法代码示例。如果您正苦于以下问题:Python restoration.denoise_tv_chambolle方法的具体用法?Python restoration.denoise_tv_chambolle怎么用?Python restoration.denoise_tv_chambolle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在skimage.restoration的用法示例。


在下文中一共展示了restoration.denoise_tv_chambolle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: SaveImage

# 需要导入模块: from skimage import restoration [as 别名]
# 或者: from skimage.restoration import denoise_tv_chambolle [as 别名]
def SaveImage(img, filename, remove_noise=0.):
    logging.info('save output to %s', filename)
    out = PostprocessImage(img)
    if remove_noise != 0.0:
        out = denoise_tv_chambolle(out, weight=remove_noise, multichannel=True)
    io.imsave(filename, out) 
开发者ID:awslabs,项目名称:dynamic-training-with-apache-mxnet-on-aws,代码行数:8,代码来源:nstyle.py

示例2: SaveImage

# 需要导入模块: from skimage import restoration [as 别名]
# 或者: from skimage.restoration import denoise_tv_chambolle [as 别名]
def SaveImage(img, filename, remove_noise=0.02):
    logging.info('save output to %s', filename)
    out = PostprocessImage(img)
    if remove_noise != 0.0:
        out = denoise_tv_chambolle(out, weight=remove_noise, multichannel=True)
    io.imsave(filename, out) 
开发者ID:awslabs,项目名称:dynamic-training-with-apache-mxnet-on-aws,代码行数:8,代码来源:data_processing.py

示例3: denoise_img_vol

# 需要导入模块: from skimage import restoration [as 别名]
# 或者: from skimage.restoration import denoise_tv_chambolle [as 别名]
def denoise_img_vol(image_vol, weight=.01):
    denoised_img = slicewise_bilateral_filter(image_vol)
    # denoised_img = denoise_tv_chambolle(image_vol, weight=weight, eps=0.0002, n_iter_max=200, multichannel=False)
    # denoised_img = denoise_tv_bregman(image_vol, weight=1./weight, max_iter=100, eps=0.001, isotropic=True)
    # print (np.linalg.norm(denoised_img-image_vol))
    return denoised_img 
开发者ID:mahendrakhened,项目名称:Automated-Cardiac-Segmentation-and-Disease-Diagnosis,代码行数:8,代码来源:data_augmentation.py


注:本文中的skimage.restoration.denoise_tv_chambolle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。