tensorflow:: ops:: ResizeBicubic
#include <image_ops.h> שינוי גודל images size המתאים באמצעות אינטרפולציה ביקובית.
תַקצִיר
תמונות קלט יכולות להיות מסוגים שונים, אך תמונות פלט תמיד הן צפות.
טיעונים:
- היקף: אובייקט היקף
- תמונות: 4-D עם צורה
[batch, height, width, channels]. - size: = טנזור int32 חד-ממדי של 2 אלמנטים:
new_height, new_width. הגודל החדש עבור התמונות.
מאפיינים אופציונליים (ראה Attrs ):
- align_corners: אם true, מרכזי 4 הפיקסלים בפינות של טנזורי הקלט והפלט מיושרים, תוך שמירה על הערכים בפיקסלים בפינות. ברירת המחדל היא false.
החזרות:
-
Output: 4-ממדי עם צורה[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
תפקידים ציבוריים
שינוי גודל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 )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]