tensorflow::ops::ResizeBilinear
#include <image_ops.h> ปรับขนาด images ให้ได้ size ที่ต้องการโดยใช้การประมาณค่าเชิงเส้นสองมิติ (Bilinear 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]
ตัวสร้างและตัวทำลาย | |
|---|---|
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) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
resized_images | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::ResizeBilinear::Attrs | ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ ResizeBilinear |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
ภาพที่ปรับขนาดแล้ว
::tensorflow::Output resized_images
หน้าที่สาธารณะ
ปรับขนาดแบบไบลิเนียร์
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 )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
จัดแนวมุม
Attrs AlignCorners( bool x )
ศูนย์กลางครึ่งพิกเซล
Attrs HalfPixelCenters( bool x )