[Insight-users] ImageRegistraiton5.py
Luis Ibanez
luis . ibanez at kitware . com
Wed, 03 Sep 2003 19:37:52 -0400
Hi Fred,
Please look at the previous post in the list
http://www . itk . org/pipermail/insight-users/2003-August/004731 . html
You may also search the users-list using the
following link
http://www . google . com/advanced_search?as_sitesearch=www . itk . org&as_epq=insight%2Dusers
Regards,
Luis
-----------------------
Fred Lionetti wrote:
> Hi all,
>
> Does anyone have a working version of ImageRegistration5.py? I tried to
> modify ImageRegistration3.py(based on ImageRegistration5.tcl and
> ImageRegistration3.tcl) and it seems that the only significant
> difference is the transform type (i.e. the call to TranslationTransform
> in ImageRegistration3.tcl, and CenteredRigid2DTransform in
> ImageRegistration5.tcl.) However, when I modified ImageRegistration3.py
> to match this transform type used in ImageRegistration5.tcl (and
> ImageRegistration5.cxx) the output image was blank, and the final
> parameters were not correct. With other images the program crashes on
> the call to StartRegistration() outputting the error message:
>
> Starting registration
> Traceback (innermost last):
> File "C:\Insight\Examples\REGIST~1\IMAGER~2.PY", line 91, in ?
> registration.StartRegistration()
> File "itkImageRegistrationMethod.py", line 401, in StartRegistration
> RuntimeError:
> C:\Insight\Code\Algorithms\itkMeanSquaresImageToImageMetric.txx:91
> :
> itk::ERROR: MeanSquaresImageToImageMetric(0083EF80): All the points
> mapped to outside of the moving image
> However, all poitns are not mapped outside of the moving image in
> my test files. Any ideas?
>
> For a plan B, would anyone know how to wrap an applicaiton such as
> ImageRegistration5.cxx for python?
>
> Thanks for the help,
> Fred