[Insight-users] Problem with wrapping itk
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Dec 1 04:17:34 EST 2009
Le 1 déc. 09 à 04:50, alex sando a écrit :
> hi all, i was trying the registration examples of ITK using
> WrapITK, but i got a problem....
> Here is my code:
>
> registration_object =
> itk.ImageRegistrationMethod[itk.Image.F2,itk.Image.F2].New()
> #...registration codes...
> resampler = itk.ResampleImageFilter[itk.Image.F2,
> itk.Image.F2].New()
> resampler.SetInput(i1)
> resampler.SetTransform(registration_object.GetOutput().Get())
> ~
> ~~~~~~AttributeError: 'str' object has no attribute 'Get'
> Any suggestions? thanks in advance~~
Hi Alex,
I think that your using wrapitk 0.2 which is currently in itk sources.
Unfortunately, the DataObjectDecorator class is not available in that
version.
It is wrapped in version 0.3 available at google code - you should try
with it.
Regards,
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091201/40786587/attachment.pgp>
More information about the Insight-users
mailing list