[Insight-users] Evaluate() removed from itk::BSplineScatteredDataPointSetToImageFilter in ITK v4.x

Ramón Casero Cañas rcasero at gmail.com
Tue Mar 27 12:23:04 EDT 2012


On 27/03/12 14:07, Nicholas Tustison wrote:
> To get the b-spline object and then evaluate it at an arbitrary
> parametric point you have to generate the control point lattice
> with the first filter and then pass it to the function.
>
> filter->Update();
>
> function->SetSplineOrder( filter->GetSplineOrder() );
> .
> .
> .
> function->SetInputImage( filter->GetPhiLattice() );
> function->Evaluate( ... );

Hi Nicholas,

Thanks for your suggestions, it works now. I have attached the code from 
here

http://code.google.com/p/gerardus/source/browse/trunk/matlab/ItkToolbox/ItkPSTransform.cpp?r=761

in case it's useful for somebody else.

Best regards,

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://www.cs.ox.ac.uk/people/Ramon.CaseroCanas
photos  http://www.flickr.com/photos/rcasero/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ItkPSTransform.cpp
Type: text/x-c++src
Size: 20873 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120327/b3d78a38/attachment.cpp>


More information about the Insight-users mailing list