在使用tf.image进行图像增强时,我们先介绍该模块中的一个类。
地址: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‘
地址:https://tensorflow.google.cn/api_docs/python/tf/image/rot90
tf.image.rot90( image, k=1, name=None )
待续。。。
原文:https://www.cnblogs.com/gengyi/p/11774117.html