dòng chảy :: hoạt động :: Thay đổi kích thước

#include <image_ops.h>

Thay đổi kích thước images thành size bằng cách sử dụng nội suy hai chiều.

Bản tóm tắt

Hình ảnh đầu vào có thể có nhiều loại khác nhau nhưng hình ảnh đầu ra luôn nổi.

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • hình ảnh: 4-D với hình dạng [batch, height, width, channels] .
  • size: = A 1-D int32 Tensor của 2 phần tử: new_height, new_width . Kích thước mới cho hình ảnh.

Các thuộc tính tùy chọn (xem Attrs ):

  • align_corners: Nếu đúng, tâm của 4 pixel góc của các tensors đầu vào và đầu ra được căn chỉnh, bảo toàn các giá trị tại các pixel góc. Giá trị mặc định là false.

Lợi nhuận:

  • Output : 4-D với shape [batch, new_height, new_width, channels] .

Người xây dựng và Người phá hủy

ResizeBicubic (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size)
ResizeBicubic (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeBicubic::Attrs & attrs)

Thuộc tính công cộng

operation
resized_images

Chức năng công cộng

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Các chức năng tĩnh công khai

AlignCorners (bool x)
HalfPixelCenters (bool x)

Cấu trúc

tensorflow :: ops :: ResizeBicubic :: Attrs

Bộ thiết lập thuộc tính tùy chọn cho ResizeBicubic .

Thuộc tính công cộng

hoạt động

Operation operation

resize_images

::tensorflow::Output resized_images

Chức năng công cộng

Thay đổi kích thước

 ResizeBicubic(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size
)

Thay đổi kích thước

 ResizeBicubic(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  const ResizeBicubic::Attrs & attrs
)

nút

::tensorflow::Node * node() const 

toán tử :: tensorflow :: Đầu vào

 operator::tensorflow::Input() const 

toán tử :: tensorflow :: Đầu ra

 operator::tensorflow::Output() const 

Các chức năng tĩnh công khai

Căn chỉnh

Attrs AlignCorners(
  bool x
)

HalfPixelCenters

Attrs HalfPixelCenters(
  bool x
)