No subject
Wed Oct 7 22:37:18 EDT 2009
<br>
=A0 Insight/Code/Review/<br>
=A0 =A0 =A0itkBSplineScatteredDataPointSetToImageFilter.h<br>
<br>
provides the functionalities that you are looking for.<br>
<br>
This class is described in the following Insight Journal paper:<br>
<a href=3D"http://www.insight-journal.org/browse/publication/57" target=3D"=
_blank">http://www.insight-journal.org/browse/publication/57</a><br>
<br>
<br>
Please take a look and let us know what you think,<br>
<br>
Otherwise we could point you to other of the<br>
BSpline implementations in ITK.<br>
<br>
<br>
=A0 =A0 =A0 Regards,<br>
<br>
<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Luis<br>
<br>
<br>
-------------------------------------------------------------<br>
On Sun, Jan 3, 2010 at 2:41 AM, Amy C <<a href=3D"mailto:mathematical.co=
ffee at gmail.com" target=3D"_blank">mathematical.coffee at gmail.com</a>> wro=
te:<br>
</div><div><div></div><div>> Hello,<br>
><br>
> I'm after some sort of B-spline class, but I'm not sure what t=
o use.<br>
> I have a spline that is a linear combination of cubic (uniform, center=
ed)<br>
> b-splines, it maps from R^(image dimension) -> R.=A0 ( spline[px] =
=3D sum(<br>
> coefficient[px]*b-spline[px] ).<br>
> In this case, instead of interpolating a set of numbers, I -know- the<=
br>
> coefficients(/control points) and knots of the spline. More or less, e=
ach<br>
> pixel in the image contains a coefficient/control point (or every n pi=
xels,<br>
> where n is an integer) and I'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 'image' and possibly downsa=
mple every now<br>
> and then<br>
><br>
> At first I thought of just using a normal array to hold the coefficien=
ts<br>
> etc, but the last two points suggest I should use something within ITK=
. I<br>
> was thinking of making an object that is more or less an itk::Image (f=
or the<br>
> coefficients) with an Evaluate/EvaluateDerivative method.<br>
><br>
> Does anyone know of a class that does this already? (Set knots, set<br=
>
> coefficients, evaluate both spline and derivatives, where the spline i=
s made<br>
> up of bsplines?) BSplineInterpolateImageFunction seems closest, but it=
<br>
> calculates coefficients to fit the input image, while I know the<br>
> coefficients and just want to calculate the derivative/values.<br>
><br>
> Thanks,<br>
> Amy<br>
><br>
</div></div><div><div></div><div>> _____________________________________=
<br>
> Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.ki=
tware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href=3D"http://www.kitware.com/opensource/opensource.html" target=
=3D"_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href=3D"http://www.kitware.com/products/protraining.html" target=3D=
"_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href=3D"http://www.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://w=
ww.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href=3D"http://www.itk.org/mailman/listinfo/insight-users" target=
=3D"_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</div></div></blockquote></div><br>
</div></div><br>_____________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href=3D"http://www.kitware.com/opensource/opensource.html" target=3D"_bl=
ank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href=3D"http://www.kitware.com/products/protraining.html" target=3D"_bla=
nk">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href=3D"http://www.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://www.it=
k.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"http://www.itk.org/mailman/listinfo/insight-users" target=3D"_bl=
ank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
--0016e6dab05614e4f0047c588a79--
More information about the Insight-users
mailing list