Google I/O में ट्यूनिंग के लिए धन्यवाद। मांग पर सभी सत्र देखें मांग पर देखें

टेंसरफ़्लो:: ऑप्स:: डीकोडबीएमपी

#include <image_ops.h>

बीएमपी-एन्कोडेड छवि के पहले फ्रेम को uint8 टेंसर में डीकोड करें।

सारांश

attr channels डिकोड की गई छवि के लिए रंग चैनलों की वांछित संख्या को इंगित करता है।

स्वीकृत मान हैं:

  • 0: बीएमपी-एन्कोडेड छवि में चैनलों की संख्या का उपयोग करें।
  • 3: एक आरजीबी छवि आउटपुट करें।
  • 4: एक आरजीबीए छवि आउटपुट करें।

तर्क:

  • स्कोप: एक स्कोप ऑब्जेक्ट
  • सामग्री: 0-डी। बीएमपी-एन्कोडेड छवि।

रिटर्न:

  • Output : आकार के साथ 3-डी [height, width, channels] । आरजीबी आदेश

निर्माता और विनाशक

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
)