tensorflow :: ops :: Yeniden Boyutlandır
#include <image_ops.h>
Yeni boy images
için size
doğrusal interpolasyon kullanarak.
Özet
Girdi görüntüleri farklı türlerde olabilir, ancak çıktı görüntüleri her zaman yüzerdir.
Argümanlar:
- kapsam: Bir Scope nesnesi
- görüntüler: 4-D şekilli
[batch, height, width, channels]
. - boyutu: = int32 bir 1-D Tensörünün 2 elemanlarının:
new_height, new_width
. Görüntüler için yeni boyut.
İsteğe bağlı özellikler (bkz. Attrs
):
- align_corners: true ise, giriş ve çıkış tensörlerinin 4 köşe pikselinin merkezleri, köşe piksellerindeki değerler korunarak hizalanır. Varsayılan olarak yanlıştır.
İadeler:
-
Output
: 4 boyutlu[batch, new_height, new_width, channels]
.
Yapıcılar ve Yıkıcılar | |
---|---|
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) |
Genel özellikler | |
---|---|
operation | |
resized_images |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel statik işlevler | |
---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) |
Yapılar | |
---|---|
tensorflow :: ops :: ResizeBilinear :: Attrs | ResizeBilinear için isteğe bağlı öznitelik belirleyiciler. |
Genel özellikler
operasyon
Operation operation
resized_images
::tensorflow::Output resized_images
Kamusal işlevler
Yeniden Boyutlandır
ResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size )
Yeniden Boyutlandır
ResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, const ResizeBilinear::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
AlignCorners
Attrs AlignCorners( bool x )
HalfPixelCenterlar
Attrs HalfPixelCenters( bool x )