Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

Module: tfg.math.interpolation.bspline

Tensorflow.graphics B-spline interpolation module.

Defined in math/interpolation/bspline.py.

This module supports cardinal B-spline interpolation up to degree 4, with up to C3 smoothness. It has functions to calculate basis functions, control point weights, and the final interpolation.


class Degree: Defines valid degrees for B-spline interpolation.


interpolate(...): Applies B-spline interpolation to input control points (knots).

interpolate_with_weights(...): Interpolates knots using knot weights.

knot_weights(...): Function that converts cardinal B-spline positions to knot weights.