入力画像の最初のバンドの各ポイントを、x 配列と y 配列で指定された区分的線形関数に補間します。x の値は厳密に増加している必要があります。入力ポイントが最初の x 値より小さいか、最後の x 値より大きい場合、出力は「動作」引数で指定されます。「外挿」は、出力値が最も近い 2 つのポイントから外挿されることを指定します。「クランプ」は、出力値が最も近いポイントから取得されることを指定します。「入力」は、出力値が入力からコピーされることを指定します。「マスク」は、出力値がマスクされることを指定します。
[[["わかりやすい","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-07-26 UTC。"],[[["The `interpolate` function modifies an image by applying a piecewise-linear function to its first band, mapping input pixel values (x-axis) to output values (y-axis)."],["Users define the function using 'x' and 'y' lists, ensuring 'x' values are strictly increasing."],["For input values outside the defined function range, the 'behavior' argument controls the output, with options including extrapolation, clamping, using original input, or masking."],["The function returns a modified image with the interpolation applied."],["The function can be used via `Image.interpolate(x, y, behavior)`, with 'x' and 'y' being lists and 'behavior' being a string with a default of 'extrapolate'."]]],[]]