tensorflow:: عملیات:: DecodeBmp

#include <image_ops.h>

اولین فریم از یک تصویر کدگذاری شده با فرمت BMP را به یک تانسور uint8 رمزگشایی کنید.

خلاصه

channels attr تعداد کانال‌های رنگی مورد نظر برای تصویر رمزگشایی شده را نشان می‌دهند.

مقادیر پذیرفته شده عبارتند از:

  • ۰: از تعداد کانال‌های موجود در تصویر کدگذاری شده با فرمت BMP استفاده می‌کند.
  • ۳: خروجی یک تصویر RGB.
  • ۴: خروجی یک تصویر 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:: عملیات:: DecodeBmp:: نشانه‌ها

تنظیم‌کننده‌های ویژگی اختیاری برای DecodeBmp .

ویژگی‌های عمومی

تصویر

::tensorflow::Output image

عملیات

Operation operation

کارکردهای عمومی

رمزگشاییBmp

 DecodeBmp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

رمزگشاییBmp

 DecodeBmp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents,
  const DecodeBmp::Attrs & attrs
)

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

کانال‌ها

Attrs Channels(
  int64 x
)