cbi_toolbox.bsplines

Module contents

The bspline package implements splines and transformations to project signals onto spline bases based on formulas described in [1].

[1] P. Thévenaz, T. Blu, M. Unser, “Interpolation Revisited”, IEEE Transactions on Medical Imaging, vol. 19, no. 7, pp. 739-758, July 2000.

cbi_toolbox.bsplines.bspline(x, deg)[source]

B-spline function, faster for degree up to 7.

Parameters:
  • x (numpy.ndarray) – The points at which the bspline is evaluated.

  • deg (int) – The degree of the bspline.

Returns:

The values of the spline for each x.

Return type:

numpy.ndarray