Hello,<br><br>I&#39;m after some sort of B-spline class, but I&#39;m not sure what to use.<br>I have a spline that is a linear combination of cubic (uniform, centered) b-splines, it maps from R^(image dimension) -&gt; R.  ( spline[px] = sum( coefficient[px]*b-spline[px] ).<br>
In this case, instead of interpolating a set of numbers, I -know- the coefficients(/control points) and knots of the spline. More or less, each pixel in the image contains a coefficient/control point (or every n pixels, where n is an integer) and I&#39;d like to evaluate the spline.<br>
I guess I just need some object with the following properties<br>- set coefficients(/control points)<br>- set knots ( or spacing? )<br>- evaluate the spline at every pixel<br>- calculate the derivative<br>- will be used in a loop - will recalculate coefficients each loop<br>
- need to convolve the coefficient &#39;image&#39; and possibly downsample every now and then<br><br>At first I thought of just using a normal array to hold the coefficients etc, but the last two points suggest I should use something within ITK. I was thinking of making an object that is more or less an itk::Image (for the coefficients) with an Evaluate/EvaluateDerivative method.<br>
<br>Does anyone know of a class that does this already? (Set knots, set coefficients, evaluate both spline and derivatives, where the spline is made up of bsplines?) BSplineInterpolateImageFunction seems closest, but it calculates coefficients to fit the input image, while I know the coefficients and just want to calculate the derivative/values.<br>
<br>Thanks,<br>Amy<br>