W3cubDocs

/TensorFlow C++

tensorflow::ops::ExtractJpegShape

#include <image_ops.h>

Extract the shape information of a JPEG-encoded image.

Summary

This op only parses the image header, so it is much faster than DecodeJpeg.

Arguments:

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

Optional attributes (see Attrs):

  • output_type: (Optional) The output type of the operation (int32 or int64). Defaults to int32.

Returns:

  • Output: 1-D. The image shape with format [height, width, channels].
Constructors and Destructors
ExtractJpegShape(const ::tensorflow::Scope & scope, ::tensorflow::Input contents)
ExtractJpegShape(const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const ExtractJpegShape::Attrs & attrs)
Public attributes
image_shape
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
OutputType(DataType x)
Structs
tensorflow::ops::ExtractJpegShape::Attrs

Optional attribute setters for ExtractJpegShape.

Public attributes

image_shape

::tensorflow::Output image_shape

Public functions

ExtractJpegShape

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

ExtractJpegShape

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

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

OutputType

Attrs OutputType(
  DataType x
)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/extract-jpeg-shape.html