tensorflow::ops::ExtractGlimpse

#include <image_ops.h>

Extrait un aperçu du tenseur d'entrée.

Résumé

Renvoie un ensemble de fenêtres, appelées aperçus, extraites à offsets de position par rapport au tenseur d'entrée. Si les fenêtres ne chevauchent que partiellement les entrées, les zones non chevauchantes seront remplies de bruit aléatoire.

Le résultat est un tenseur 4D de forme [batch_size, glimpse_height, glimpse_width, channels] . Les dimensions des canaux et du lot sont identiques à celles du tenseur d'entrée. La hauteur et la largeur des fenêtres de sortie sont spécifiées par le paramètre size .

The argument normalized and centered controls how the windows are built:

  • If the coordinates are normalized but not centered, 0.0 and 1.0 correspond to the minimum and maximum of each height and width dimension.
  • Si les coordonnées sont à la fois normalisées et centrées, elles varient de -1,0 à 1,0. Les coordonnées (-1,0, -1,0) correspondent au coin supérieur gauche, le coin inférieur droit est situé à (1,0, 1,0) et le centre est à (0, 0).
  • If the coordinates are not normalized they are interpreted as numbers of pixels.

Arguments :

  • portée : un objet Scope
  • input: A 4-D float tensor of shape [batch_size, height, width, channels] .
  • size: A 1-D tensor of 2 elements containing the size of the glimpses to extract. The glimpse height must be specified first, following by the glimpse width.
  • offsets: A 2-D integer tensor of shape [batch_size, 2] containing the y, x locations of the center of each window.

Attributs optionnels (voir Attrs ) :

  • `centered` : indique si les coordonnées de décalage sont centrées par rapport à l’image. Dans ce cas, le décalage (0, 0) est relatif au centre des images d’entrée. Si la valeur est `false`, le décalage (0, 0) correspond au coin supérieur gauche des images d’entrée.
  • normalized: indicates if the offset coordinates are normalized.
  • uniform_noise: indicates if the noise should be generated using a uniform distribution or a Gaussian distribution.
  • noise: indicates if the noise should uniform , gaussian , or zero . The default is uniform which means the the noise type will be decided by uniform_noise .

Retours :

  • Output : A tensor representing the glimpses [batch_size, glimpse_height, glimpse_width, channels] .

Constructeurs et destructeurs

ExtractGlimpse (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input offsets)
ExtractGlimpse (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input offsets, const ExtractGlimpse::Attrs & attrs)

attributs publics

glimpse
operation

fonctions publiques

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

fonctions statiques publiques

Centered (bool x)
Noise (StringPiece x)
Normalized (bool x)
UniformNoise (bool x)

Structures

tensorflow::ops::ExtractGlimpse::Attrs

Définiteurs d'attributs optionnels pour ExtractGlimpse .

attributs publics

aperçu

::tensorflow::Output glimpse

opération

Operation operation

fonctions publiques

Aperçu de l'extrait

 ExtractGlimpse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input offsets
)

Aperçu de l'extrait

 ExtractGlimpse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input offsets,
  const ExtractGlimpse::Attrs & attrs
)

nœud

::tensorflow::Node * node() const 

opérateur::tensorflow::Entrée

 operator::tensorflow::Input() const 

opérateur::tensorflow::Sortie

 operator::tensorflow::Output() const 

fonctions statiques publiques

Centré

Attrs Centered(
  bool x
)

Bruit

Attrs Noise(
  StringPiece x
)

Normalisé

Attrs Normalized(
  bool x
)

UniformNoise

Attrs UniformNoise(
  bool x
)