tensorflow 利用模块tf.image进行图像加强

在使用tf.image进行图像加强时,咱们先介绍该模块中的一个类。python

1 tf.image.ResizeMethod

地址:https://tensorflow.google.cn/api_docs/python/tf/image/ResizeMethod#class_resizemethodapi

该类主要是用于选择调整图像大小的,其类成员有:google

  • AREA = 'area'spa

  • BICUBIC = 'bicubic'rest

  • BILINEAR = 'bilinear'code

  • GAUSSIAN = 'gaussian'blog

  • LANCZOS3 = 'lanczos3'get

  • LANCZOS5 = 'lanczos5'it

  • MITCHELLCUBIC = 'mitchellcubic'class

  • NEAREST_NEIGHBOR = 'nearest'

2 tf.image.rot90

地址:https://tensorflow.google.cn/api_docs/python/tf/image/rot90

tf.image.rot90(
    image,
    k=1,
    name=None
)

待续。。。

相关文章
相关标签/搜索