tensorflow::ops::DecodeBmp
#include <image_ops.h>ถอดรหัสเฟรมแรกของภาพที่เข้ารหัสแบบ BMP ไปเป็นเทนเซอร์ uint8
สรุป
ตัวแปร attr channels ระบุจำนวนช่องสีที่ต้องการสำหรับภาพที่ถอดรหัสแล้ว
ค่าที่ยอมรับได้คือ:
- 0: ใช้จำนวนช่องสัญญาณในภาพที่เข้ารหัสแบบ BMP
- 3: ส่งออกภาพ RGB
- 4: ส่งออกภาพ RGBA
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- เนื้อหา: 0 มิติ ภาพที่เข้ารหัสแบบ BMP
การส่งคืนสินค้า:
-
Output: รูปทรง 3 มิติ[height, width, channels]เรียงลำดับแบบ RGB
ตัวสร้างและตัวทำลาย | |
|---|---|
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodeBmp::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
image | |
operation | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
Channels (int64 x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::DecodeBmp::Attrs | ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ DecodeBmp |
คุณลักษณะสาธารณะ
ภาพ
::tensorflow::Output image
การดำเนินการ
Operation operation
หน้าที่สาธารณะ
ดีโคเดบบีเอ็มพี
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
ดีโคเดบบีเอ็มพี
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodeBmp::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
ช่องต่างๆ
Attrs Channels( int64 x )