[Insight-users] warping a clound of points when the target landmarks form a straight line
Nicholas Tustison
ntustison at gmail.com
Mon Jun 20 10:03:03 EDT 2011
Yeah, so what you want to do is make sure that the 3-D B-spline
domain that you specify encompasses your cylinder by setting
the origin, spacing, and size appropriately. Then, assuming you want
your warp field to point from source to target, the input point set will
consist of the set of source points with the corresponding data given
as the <dx,dy,dz> vector from the source points to the target points.
These scattered data will then be used to estimate the warp field over
the entire 3-D B-spline domain that you specified.
Nick
On Jun 20, 2011, at 9:51 AM, Ramón Casero Cañas wrote:
> On 20/06/11 13:39, Nicholas Tustison wrote:
>> Hi Ramon,
>>
>> Do you have a one-to-one correspondence between source points and
>> target points? If so, you could use the following filter
>>
>> http://www.itk.org/Doxygen/html/classitk_1_1BSplineScatteredDataPointSetToImageFilter.html
>
> Hi Nick,
>
> Yes, the correspondence is one-to-one. I had actually bumped into your itk::BSplineScatteredDataPointSetToImageFilter class, but I hadn't realised it can be used for warping. Thanks for the pointer, I'll definitely give it a try!
>
> Ramon.
>
> --
> Dr. Ramón Casero Cañas
>
> Computational Biology
> Department of Computer Science
> University of Oxford
> Wolfson Building, Parks Rd
> Oxford OX1 3QD
>
> tlf +44 (0) 1865 610737
> web http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas
> photos http://www.flickr.com/photos/rcasero/
More information about the Insight-users
mailing list