#include <image_ops.h>
Extract the shape information of a JPEG-encoded image.
This op only parses the image header, so it is much faster than DecodeJpeg.
Arguments:
Optional attributes (see Attrs
):
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. |
::tensorflow::Output image_shape
ExtractJpegShape( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
ExtractJpegShape( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const ExtractJpegShape::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
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