<div dir="ltr">Hello,<div><br></div><div>I tried to convert a registration method that I have to use the CenteredSimilarity2DTransform instead of the CenteredRigid2DTransform in Python. There seems to be a problem however, as the CenteredTransformInitializer in Python only seems to work with the rigid transforms now. The wrapping file looks like this:</div><div><br></div><div><div>itk_wrap_include("itkVersorRigid3DTransform.h")</div><div>itk_wrap_include("itkCenteredRigid2DTransform.h")</div><div>itk_wrap_class("itk::CenteredTransformInitializer" POINTER)</div><div>    itk_wrap_filter_dims(d 3)</div><div>    if(d)</div><div>        foreach(t ${WRAP_ITK_SCALAR})</div><div>          itk_wrap_template("VR3DT${ITKM_D}${ITKM_I${t}${d}}${ITKM_I${t}${d}}" "itk::VersorRigid3DTransform< ${ITKT_D} >,${ITKT_I${t}${d}},${ITKT_I${t}${d}}")</div><div>        endforeach()</div><div>    endif(d)</div><div><br></div><div>    itk_wrap_filter_dims(d 2)</div><div>    if(d)</div><div>        foreach(t ${WRAP_ITK_SCALAR})</div><div>          itk_wrap_template("CR2DT${ITKM_D}${ITKM_I${t}${d}}${ITKM_I${t}${d}}" "itk::CenteredRigid2DTransform< ${ITKT_D} >,${ITKT_I${t}${d}},${ITKT_I${t}${d}}")</div><div>        endforeach()</div><div>    endif(d)</div><div>itk_end_wrap_class()</div></div><div><br></div><div>How would I go about fixing this? Should I just add a new line, like:</div><div><br></div><div> itk_wrap_template("CS2DT${ITKM_D}${ITKM_I${t}${d}}${ITKM_I${t}${d}}" "itk::CenteredSimilarity2DTransform< ${ITKT_D} >,${ITKT_I${t}${d}},${ITKT_I${t}${d}}")<br></div><div><br></div><div>inside the if(d)...endif(d) for the 2D images? I could of course just try, but I thought to ask, as compilation always takes a while with the Python wrapping :-)</div><div><br></div><div>Best,</div><div><br></div><div>Sami</div></div>