Idea

Modeling the function that approaches the linear spline around the image edges and stays the same as the cubic spline elsewhere by making the tension parameter variable.

linear spline
(blocky)
adaptive
spline in tension
cubic spline
(ringing)