TensorFlow函数:tf.image.resize_bilinear

2018-06-13 11:05 更新

tf.image.resize_bilinear函数

tf.image.resize_bilinear(
    images,
    size,
    align_corners=False,
    name=None
)

请参阅指南:图像操作>调整大小

使用双线性插值调整images为size.

输入图像可以是不同的类型,但输出图像总是浮点型的.

参数:

  • images:一个Tensor,必须是下列类型之一:int8,uint8,int16,uint16,int32,int64,bfloat16,half,float32,float64;4维的并且具有形状[batch, height, width, channels].
  • size:2个元素(new_height, new_width)的1维int32张量,用来表示图像的新大小.
  • align_corners:可选的bool,默认为False;如果为True,则输入和输出张量的4个角像素的中心对齐,并且保留角落像素处的值.
  • name:操作的名称(可选).

返回值:

该函数返回float32类型的Tensor.

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy