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

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

1 tf.image.ResizeMethod

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

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

  • AREA = 'area'

  • BICUBIC = 'bicubic'

  • BILINEAR = 'bilinear'

  • GAUSSIAN = 'gaussian'

  • LANCZOS3 = 'lanczos3'

  • LANCZOS5 = 'lanczos5'

  • MITCHELLCUBIC = 'mitchellcubic'

  • 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
)

待续。。。

猜你喜欢

转载自www.cnblogs.com/gengyi/p/11774117.html