tensorflow:: ops:: DecodeBmp

#include <image_ops.h>

Decode the first frame of a BMP-encoded image to a uint8 tensor.

Summary

The attr channels indicates the desired number of color channels for the decoded image.

Accepted values are:

  • 0: Use the number of channels in the BMP-encoded image.
  • 3: output an RGB image.
  • 4: output an RGBA image.

Args:

  • scope: A Scope object
  • contents: 0-D. The BMP-encoded image.

Returns:

  • Output : 3-D with shape [height, width, channels] . RGB order

Constructors and Destructors

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

Public attributes

image
operation

Public functions

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Public static functions

Channels (int64 x)

Structs

tensorflow:: ops:: DecodeBmp:: Attrs

Optional attribute setters for DecodeBmp .

Public attributes

image

::tensorflow::Output image

operation

Operation operation

Public functions

DecodeBmp

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

DecodeBmp

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

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

Channels

Attrs Channels(
  int64 x
)