[Insight-users] [ITK4] ITK/Examples/Registration/ImageRegistrationMethodBSpline

Vivien Delmon vivien.delmon at creatis.insa-lyon.fr
Thu Sep 29 12:14:58 EDT 2011


Dear all,

I am porting clitk tools to itk4 and I saw that the 
itkBSplineTransform's API changed. I tried to understand how it works 
with the example you written here : 
http://www.itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodBSpline#ImageRegistrationMethodBSpline.cxx

But I could not figure out why you subtract the SplineOrder from the 
meshSize in the itk4 version :

   unsigned int numberOfGridNodesInOneDimension = 5;
   meshSize.Fill( numberOfGridNodesInOneDimension - SplineOrder );

I compiled the example with itkv3 / itkv4 and the only way I found to 
get the same number of parameters is by removing this subtraction. Is 
there something wrong on the wiki page or am I misunderstood something ? 
Moreover removing this subtract doesn't give the same result as the 
itkv3 version. What is the right way to have similar result with itkv3 
and itkv4 ?

King Regards,

-- 
Vivien Delmon
PhD student at CREATIS, Lyon
Supported by ANRT and ELEKTA
http://www.creatis.insa-lyon.fr/rio


More information about the Insight-users mailing list