tensorflow::ops::ResizeBilinear

#include <image_ops.h>

Thay đổi size images bằng phương pháp nội suy song tuyến.

Bản tóm tắt

Ảnh đầu vào có thể thuộc nhiều định dạng khác nhau, nhưng ảnh đầu ra luôn là định dạng float.

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • Hình ảnh: 4 chiều với hình dạng [batch, height, width, channels] .
  • kích thước: = Một Tensor 1 chiều int32 gồm 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 là true, tâm của 4 pixel góc của tensor đầu vào và đầu ra sẽ được căn chỉnh, giữ nguyên giá trị tại các pixel góc. Mặc định là false.

Trả về:

  • Output : 4 chiều với hình dạng [batch, new_height, new_width, channels] .

Hàm khởi tạo và hàm hủy

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

Thuộc tính công khai

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 hàm tĩnh công khai

AlignCorners (bool x)
HalfPixelCenters (bool x)

Cấu trúc

tensorflow::ops::ResizeBilinear::Attrs

Các thiết lập thuộc tính tùy chọn cho ResizeBilinear .

Thuộc tính công khai

hoạt động

Operation operation

ảnh đã thay đổi kích thước

::tensorflow::Output resized_images

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

Thay đổi kích thước song tuyến

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

Thay đổi kích thước song tuyến

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

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Các hàm tĩnh công khai

Căn chỉnh góc

Attrs AlignCorners(
  bool x
)

HalfPixelCenters

Attrs HalfPixelCenters(
  bool x
)