tensorflow::ops::ResizeBicubic

#include <image_ops.h>

ปรับขนาด images ให้ได้ size ที่ต้องการโดยใช้การประมาณค่าแบบไบคิวบิก (bicubic interpolation)

สรุป

รูปภาพ ที่ป้อนเข้า สามารถเป็นได้หลายประเภท แต่รูปภาพที่ได้ออกมาจะเป็นประเภท float เสมอ

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ภาพ: 4 มิติ พร้อมรูปทรง [batch, height, width, channels]
  • ขนาด: = เทนเซอร์ int32 แบบ 1 มิติ ประกอบด้วย 2 องค์ประกอบ: new_height, new_width ขนาดใหม่สำหรับรูปภาพ

คุณลักษณะเสริม (ดูที่ Attrs ):

  • align_corners: หากตั้งค่าเป็น true จุดศูนย์กลางของพิกเซลทั้ง 4 มุมของเทนเซอร์อินพุตและเอาต์พุตจะถูกจัดเรียงให้ตรงกัน โดยคงค่าที่พิกเซลมุมไว้ ค่าเริ่มต้นคือ false

การส่งคืนสินค้า:

  • Output : 4 มิติที่มีรูปร่าง [batch, new_height, new_width, channels]

ตัวสร้างและตัวทำลาย

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)

คุณลักษณะสาธารณะ

operation
resized_images

หน้าที่สาธารณะ

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

ฟังก์ชันคงที่สาธารณะ

AlignCorners (bool x)
HalfPixelCenters (bool x)

โครงสร้าง

tensorflow::ops::ResizeBicubic::Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ ResizeBicubic

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

ภาพที่ปรับขนาดแล้ว

::tensorflow::Output resized_images

หน้าที่สาธารณะ

ปรับขนาดลูกบาศก์สองมิติ

 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
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

จัดแนวมุม

Attrs AlignCorners(
  bool x
)

ศูนย์กลางครึ่งพิกเซล

Attrs HalfPixelCenters(
  bool x
)