קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הוספת מרווחים פנימיים (padding) לערכים של המערעים בכל פיקסל כדי שהם יהיו באורך קבוע. ערך המילוי יתווסף לכל מערך כדי להאריך אותו לאורך נתון לאורך כל ציר. כל הערוצים של התמונה חייבים להיות בעלי ערך מערך ובעלי אותם מאפיינים.
שימוש
החזרות
Image.arrayPad(lengths, pad)
תמונה
ארגומנט
סוג
פרטים
זה: image
תמונה
תמונה של מערך לצורך הוספת שטח.
lengths
רשימה
רשימה של האורך הרצוי לכל ציר במערכות הפלט. מערכים שכבר גדולים או גדולים יותר מהאורך שצוין לא ישתנו בציר הזה.
[[["התוכן קל להבנה","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"]],["עדכון אחרון: 2025-02-23 (שעון UTC)."],[[["`arrayPad` extends the array values in each image pixel to a specified length using a provided pad value."],["It accepts an array image, a list of desired lengths for each axis, and an optional pad value (defaulting to 0)."],["If an array is already at or beyond the desired length, it remains unchanged along that axis."],["All bands in the image must be array-valued and share the same dimensions for the function to work correctly."],["This function is useful for standardizing array lengths in images for further processing."]]],[]]