# Module: tfg.math.interpolation.bspline

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/math/interpolation/bspline.py) |

Tensorflow.graphics B-spline interpolation module.

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`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/interpolation/bspline/Degree): Defines valid degrees for B-spline interpolation.

## Functions

[`interpolate(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/interpolation/bspline/interpolate): Applies B-spline interpolation to input control points (knots).

[`interpolate_with_weights(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/interpolation/bspline/interpolate_with_weights): Interpolates knots using knot weights.

[`knot_weights(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/interpolation/bspline/knot_weights): Function that converts cardinal B-spline positions to knot weights.