تينسورفلو :: العمليات :: ResizeBicubic
#include <image_ops.h>
تغيير حجم images
إلى size
باستخدام الاستيفاء التكعيبي.
ملخص
يمكن أن تكون الصور المدخلة من أنواع مختلفة ولكن صور الإخراج دائمًا ما تكون عائمة.
الحجج:
- النطاق: كائن النطاق
- الصور: 4-D بالشكل
[batch, height, width, channels]
. - حجم: = A 1-D int32 التنسور من 2 عناصر:
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
بحجم_الصور
::tensorflow::Output resized_images
الوظائف العامة
ResizeBicubic
ResizeBicubic( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size )
ResizeBicubic
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 :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
محاذاة الزوايا
Attrs AlignCorners( bool x )
HalfPixelCenters
Attrs HalfPixelCenters( bool x )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]