flux tensoriel : : opérations : : DecodeAndCropJpeg :: Attributs

#include <image_ops.h>

Setters d'attributs facultatifs pour DecodeAndCropJpeg .

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
La fraction minimale requise de lignes 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 spécifiant un indice 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
Taux de réduction d'échelle.
TryRecoverTruncated (bool x)
TF_MUST_USE_RESULT Attrs
Si c'est vrai, essayez de récupérer une image à partir d'une entrée tronquée.

Attributs publics

fraction_acceptable_

float tensorflow::ops::DecodeAndCropJpeg::Attrs::acceptable_fraction_ = 1.0f

chaînes_

int64 tensorflow::ops::DecodeAndCropJpeg::Attrs::channels_ = 0

dct_method_

StringPiece tensorflow::ops::DecodeAndCropJpeg::Attrs::dct_method_ = ""

fantaisie_upscaling_

bool tensorflow::ops::DecodeAndCropJpeg::Attrs::fancy_upscaling_ = true

rapport_

int64 tensorflow::ops::DecodeAndCropJpeg::Attrs::ratio_ = 1

try_recover_truncated_

bool tensorflow::ops::DecodeAndCropJpeg::Attrs::try_recover_truncated_ = false

Fonctions publiques

Fraction Acceptable

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::AcceptableFraction(
  float x
)

La fraction minimale requise de lignes avant qu’une entrée tronquée soit acceptée.

La valeur par défaut est 1

Canaux

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::Channels(
  int64 x
)

Nombre de canaux de couleur pour l'image décodée.

La valeur par défaut est 0

Méthode Dct

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::DctMethod(
  StringPiece x
)

chaîne spécifiant un indice sur l'algorithme utilisé pour la décompression.

La valeur par défaut est "" qui correspond à une valeur par défaut spécifique au système. Les valeurs actuellement valides sont ["INTEGER_FAST", "INTEGER_ACCURATE"]. L'indice peut être ignoré (par exemple, la bibliothèque JPEG interne passe à une version qui n'a pas cette option spécifique.)

La valeur par défaut est ""

Mise à l'échelle fantaisie

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::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).

La valeur par défaut est vrai

Rapport

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::Ratio(
  int64 x
)

Taux de réduction d'échelle.

La valeur par défaut est 1

TryRecoverTruncated

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::TryRecoverTruncated(
  bool x
)

Si c'est vrai, essayez de récupérer une image à partir d'une entrée tronquée.

La valeur par défaut est false