tensorflow::ops::DecodeJpeg::Attrs
#include <image_ops.h>Définiteurs d'attributs optionnels pour DecodeJpeg .
Résumé
attributs publics | |
|---|---|
acceptable_fraction_ = 1.0f | float |
channels_ = 0 | int64 |
dct_method_ = "" | StringPiece |
fancy_upscaling_ = true | bool |
ratio_ = 1 | int64 |
try_recover_truncated_ = false | bool |
fonctions publiques | |
|---|---|
AcceptableFraction (float x) | TF_MUST_USE_RESULT Attrs Nombre minimal de lignes requis avant qu'une entrée tronquée soit acceptée. |
Channels (int64 x) | TF_MUST_USE_RESULT Attrs Nombre de canaux de couleur pour l'image décodée. |
DctMethod (StringPiece x) | TF_MUST_USE_RESULT Attrs chaîne de caractères fournissant une indication sur l'algorithme utilisé pour la décompression. |
FancyUpscaling (bool x) | TF_MUST_USE_RESULT Attrs Si c'est vrai, utilisez une mise à l'échelle plus lente mais plus agréable des plans de chrominance (yuv420/422 uniquement). |
Ratio (int64 x) | TF_MUST_USE_RESULT Attrs Rapport de réduction. |
TryRecoverTruncated (bool x) | TF_MUST_USE_RESULT Attrs Si la valeur est vraie, essayez de récupérer une image à partir d'une entrée tronquée. |
attributs publics
fraction_acceptable
float tensorflow::ops::DecodeJpeg::Attrs::acceptable_fraction_ = 1.0f
chaînes_
int64 tensorflow::ops::DecodeJpeg::Attrs::channels_ = 0
méthode_dct_
StringPiece tensorflow::ops::DecodeJpeg::Attrs::dct_method_ = ""
mise à l'échelle élégante
bool tensorflow::ops::DecodeJpeg::Attrs::fancy_upscaling_ = true
rapport_
int64 tensorflow::ops::DecodeJpeg::Attrs::ratio_ = 1
essayer_récupérer_tronqué_
bool tensorflow::ops::DecodeJpeg::Attrs::try_recover_truncated_ = false
fonctions publiques
Fraction acceptable
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::AcceptableFraction( float x )
Nombre minimal de lignes requis avant qu'une entrée tronquée soit acceptée.
Valeur par défaut : 1
Chaînes
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Channels( int64 x )
Nombre de canaux de couleur pour l'image décodée.
Valeur par défaut : 0
Méthode DCT
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::DctMethod( StringPiece x )
chaîne de caractères fournissant une indication sur l'algorithme utilisé pour la décompression.
Par défaut, la valeur est « » et correspond à une valeur par défaut spécifique au système. Les valeurs actuellement valides sont ["INTEGER_FAST", "INTEGER_ACCURATE"]. Cette indication peut être ignorée (par exemple, si la bibliothèque JPEG interne est mise à jour et ne dispose plus de cette option).
Par défaut, ""
Mise à l'échelle sophistiquée
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::FancyUpscaling( bool x )
Si c'est vrai, utilisez une mise à l'échelle plus lente mais plus agréable des plans de chrominance (yuv420/422 uniquement).
Par défaut, vrai
Rapport
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Ratio( int64 x )
Rapport de réduction.
Valeur par défaut : 1
TryRecoverTronqué
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::TryRecoverTruncated( bool x )
Si la valeur est vraie, essayez de récupérer une image à partir d'une entrée tronquée.
Par défaut, faux