TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

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.

Classes

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

Functions

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.