تدفق التوتر:: العمليات:: تغيير حجم Bicubic

#include <image_ops.h>

تغيير حجم images إلى size باستخدام الاستيفاء التكعيبي.

ملخص

يمكن أن تكون الصور المدخلة من أنواع مختلفة ولكن الصور الناتجة تكون عائمة دائمًا.

الحجج:

  • النطاق: كائن النطاق
  • الصور: 4D بالشكل [batch, height, width, channels] .
  • الحجم: = موتر int32 أحادي الأبعاد مكون من عنصرين: new_height, new_width . الحجم الجديد للصور.

السمات الاختيارية (انظر Attrs ):

  • align_corners: إذا كان صحيحًا، تتم محاذاة مراكز بكسلات الزاوية الأربعة لموترات الإدخال والإخراج، مع الحفاظ على القيم عند بكسلات الزاوية. الافتراضيات كاذبة.

عائدات:

  • Output : 4-D بالشكل [batch, new_height, new_width, channels] .

البنائين والمدمرين

ResizeBicubic (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size)
ResizeBicubic (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeBicubic::Attrs & attrs)

الصفات العامة

operation
resized_images

الوظائف العامة

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

وظائف ثابتة العامة

AlignCorners (bool x)
HalfPixelCenters (bool x)

الهياكل

Tensorflow:: ops:: ResizeBicubic:: Attrs

محددات السمات الاختيارية لـ ResizeBicubic .

الصفات العامة

عملية

Operation operation

resize_images

::tensorflow::Output resized_images

الوظائف العامة

تغيير حجم Bicubic

 ResizeBicubic(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size
)

تغيير حجم Bicubic

 ResizeBicubic(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  const ResizeBicubic::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

محاذاة الزوايا

Attrs AlignCorners(
  bool x
)

مراكز نصف بكسل

Attrs HalfPixelCenters(
  bool x
)