Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Dodaje do wartości tablicy w każdym pikselu stałe wypełnienie. Wartość wypełnienia zostanie dołączona do każdej tablicy, aby rozszerzyć ją do określonej długości wzdłuż każdej osi. Wszystkie pasma obrazu muszą mieć wartości tablicowe i te same wymiary.
Wykorzystanie
Zwroty
Image.arrayPad(lengths, pad)
Obraz
Argument
Typ
Szczegóły
to: image
Obraz
Obraz tablicy do wypełniania.
lengths
Lista
Lista pożądanych długości dla każdej osi w tablicach wyjściowych. Tablice, które mają już większą lub równą podaną długość, pozostaną niezmienione wzdłuż tej osi.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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."]]],[]]