#include <image_ops.h>
PNG-encode an image.
image
is a 3-D uint8 or uint16 Tensor of shape [height, width, channels]
where channels
is:
The ZLIB compression level, compression
, can be -1 for the PNG-encoder default or a value from 0 to 9. 9 is the highest compression level, generating the smallest output, but is slower.
Arguments:
[height, width, channels]
.Optional attributes (see Attrs
):
Returns:
Output
: 0-D. PNG-encoded image. Constructors and Destructors | |
---|---|
EncodePng(const ::tensorflow::Scope & scope, ::tensorflow::Input image) | |
EncodePng(const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs) |
Public attributes | |
---|---|
contents |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Compression(int64 x) |
Structs | |
---|---|
tensorflow::ops::EncodePng::Attrs | Optional attribute setters for EncodePng. |
::tensorflow::Output contents
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Compression( int64 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/encode-png.html