Tensorflow :: ops :: EncodeJpeg :: Attrs
#include <image_ops.h>
Optionale Attributsetzer für EncodeJpeg .
Zusammenfassung
Öffentliche Attribute | |
---|---|
chroma_downsampling_ = true | bool |
density_unit_ = "in" | StringPiece |
format_ = "" | StringPiece |
optimize_size_ = false | bool |
progressive_ = false | bool |
quality_ = 95 | int64 |
x_density_ = 300 | int64 |
xmp_metadata_ = "" | StringPiece |
y_density_ = 300 | int64 |
Öffentliche Funktionen | |
---|---|
ChromaDownsampling (bool x) | TF_MUST_USE_RESULT Attrs |
DensityUnit (StringPiece x) | TF_MUST_USE_RESULT Attrs Einheit zur Angabe von x_density und y_density : Pixel pro Zoll ( 'in' ) oder Zentimeter ( 'cm' ). |
Format (StringPiece x) | TF_MUST_USE_RESULT Attrs Bildformat pro Pixel. |
OptimizeSize (bool x) | TF_MUST_USE_RESULT Attrs Wenn True, geben Sie CPU / RAM aus, um die Größe ohne Qualitätsänderung zu reduzieren. |
Progressive (bool x) | TF_MUST_USE_RESULT Attrs Wenn True, erstellen Sie ein JPEG, das schrittweise geladen wird (grob bis fein). |
Quality (int64 x) | TF_MUST_USE_RESULT Attrs Qualität der Komprimierung von 0 bis 100 (höher ist besser und langsamer). |
XDensity (int64 x) | TF_MUST_USE_RESULT Attrs Horizontale Pixel pro Dichteeinheit. |
XmpMetadata (StringPiece x) | TF_MUST_USE_RESULT Attrs Wenn nicht leer, binden Sie diese XMP-Metadaten in den Bildheader ein. |
YDensity (int64 x) | TF_MUST_USE_RESULT Attrs Vertikale Pixel pro Dichteeinheit. |
Öffentliche Attribute
chroma_downsampling_
bool tensorflow::ops::EncodeJpeg::Attrs::chroma_downsampling_ = true
Dichte_Einheit_
StringPiece tensorflow::ops::EncodeJpeg::Attrs::density_unit_ = "in"
Format_
StringPiece tensorflow::ops::EncodeJpeg::Attrs::format_ = ""
optimize_size_
bool tensorflow::ops::EncodeJpeg::Attrs::optimize_size_ = false
progressive_
bool tensorflow::ops::EncodeJpeg::Attrs::progressive_ = false
Qualität_
int64 tensorflow::ops::EncodeJpeg::Attrs::quality_ = 95
x_density_
int64 tensorflow::ops::EncodeJpeg::Attrs::x_density_ = 300
xmp_metadata_
StringPiece tensorflow::ops::EncodeJpeg::Attrs::xmp_metadata_ = ""
y_density_
int64 tensorflow::ops::EncodeJpeg::Attrs::y_density_ = 300
Öffentliche Funktionen
ChromaDownsampling
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::ChromaDownsampling( bool x )
Siehe http://en.wikipedia.org/wiki/Chroma_subsampling .
Der Standardwert ist true
DensityUnit
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::DensityUnit( StringPiece x )
Einheit zur Angabe von x_density
und y_density
: Pixel pro Zoll ( 'in'
) oder Zentimeter ( 'cm'
).
Der Standardwert ist "in".
Format
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Format( StringPiece x )
Bildformat pro Pixel.
Der Standardwert ist ""
OptimizeSize
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::OptimizeSize( bool x )
Wenn True, geben Sie CPU / RAM aus, um die Größe ohne Qualitätsänderung zu reduzieren.
Der Standardwert ist false
Progressiv
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Progressive( bool x )
Wenn True, erstellen Sie ein JPEG, das schrittweise geladen wird (grob bis fein).
Der Standardwert ist false
Qualität
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Quality( int64 x )
Qualität der Komprimierung von 0 bis 100 (höher ist besser und langsamer).
Der Standardwert ist 95
XDichte
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::XDensity( int64 x )
Horizontale Pixel pro Dichteeinheit.
Der Standardwert ist 300
XmpMetadata
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::XmpMetadata( StringPiece x )
Wenn nicht leer, binden Sie diese XMP-Metadaten in den Bildheader ein.
Der Standardwert ist ""
YDichte
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::YDensity( int64 x )
Vertikale Pixel pro Dichteeinheit.
Der Standardwert ist 300