[ITK-users] Fitting Point Data

Nicholas Tustison ntustison at gmail.com
Sat Mar 22 20:26:51 EDT 2014


Also, this documentation could be helpful to you.

http://www.insight-journal.org/browse/publication/57


On Mar 22, 2014, at 8:18 PM, Nicholas Tustison <ntustison at gmail.com> wrote:

> Here’s a sample application which uses the BSplineScattered…Filter
> to fit a B-splien to a curve
> 
> https://github.com/ntustison/Utilities/blob/master/src/FitBSplineCurveToAvantsLandmarks.cxx
> 
> where the input points are specified by a text file with the following 
> format
> 
> 0 0 0 0
> x1 y1 z1 w1
> x2 y2 z2 w2
> .
> .
> .
> xN yN zN wN
> 0 0 0 0
> 
> Nick
> 
> 
> 
> On Mar 22, 2014, at 6:47 PM, Becksfort, Jared <Jared.Becksfort at STJUDE.ORG> wrote:
> 
>> Hello,
>> 
>> I am trying to fit a curve to a set of points in 2D.  I have one point per image row, but not all image rows will have values.  I would like to fit splines instead of using regression because I want to be sure that the curve goes through each point I have given the PointSet.  I have experimented with BSplineScatteredDataPointSetToImageFilter, but I am beginning to think that this class was not designed for this purpose.  Maybe I am wrong.
>> 
>> Does anyone know which class would be used to fit a curve to a point set and guarantee that it goes through the points that you give it?
>> 
>> Thanks so much,
>> Jared
>> 
>> Email Disclaimer:  www.stjude.org/emaildisclaimer
>> Consultation Disclaimer:  www.stjude.org/consultationdisclaimer
>> 
>> _____________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>> 
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
> 



More information about the Insight-users mailing list