نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: فك التشفير

#include <image_ops.h>

قم بفك تشفير الإطار الأول لصورة مشفرة باستخدام BMP إلى موتر uint8.

ملخص

تشير channels Attr إلى العدد المطلوب من القنوات الملونة للصورة التي تم فك تشفيرها.

القيم المقبولة هي:

  • 0: استخدم عدد القنوات في الصورة المشفرة BMP.
  • 3: إخراج صورة RGB.
  • 4: إخراج صورة RGBA.

الحجج:

  • النطاق: كائن النطاق
  • المحتويات: 0-D. الصورة المشفرة بواسطة BMP.

عائدات:

  • Output : ثلاثي الأبعاد مع الشكل [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 

المشغل :: tensorflow :: الإدخال

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

القنوات

Attrs Channels(
  int64 x
)