tensorflow:: ops:: ResizeBilinear
#include <image_ops.h> Zmiana size images przy użyciu interpolacji dwuliniowej.
Streszczenie
Obrazy wejściowe mogą być różnych typów, ale obrazy wyjściowe są zawsze typu float.
Argumenty:
- zakres: obiekt zakresu
- obrazy: 4-D z kształtem
[batch, height, width, channels]. - rozmiar: = Jednowymiarowy int32 Tensor 2 elementów:
new_height, new_width. Nowy rozmiar obrazów.
Atrybuty opcjonalne (patrz Attrs ):
- align_corners: Jeśli wartość true, środki 4 narożnych pikseli tensora wejściowego i wyjściowego są wyrównywane, zachowując wartości w narożnych pikselach. Domyślnie false.
Zwroty:
-
Output: 4-D z kształtem[batch, new_height, new_width, channels].
Konstruktory i destruktory | |
|---|---|
ResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size) | |
ResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeBilinear::Attrs & attrs) |
Atrybuty publiczne | |
|---|---|
operation | |
resized_images | |
Funkcje publiczne | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Publiczne funkcje statyczne | |
|---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) | |
Struktury | |
|---|---|
| tensorflow:: ops:: ResizeBilinear:: Attrs | Opcjonalne settery atrybutów dla ResizeBilinear . |
Atrybuty publiczne
działanie
Operation operation
obrazy o zmienionym rozmiarze
::tensorflow::Output resized_images
Funkcje publiczne
Zmień rozmiarDwuliniowy
ResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size )
Zmień rozmiarDwuliniowy
ResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, const ResizeBilinear::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Wyrównaj narożniki
Attrs AlignCorners( bool x )
HalfPixelCenters
Attrs HalfPixelCenters( bool x )