[Insight-users] Can't create PoinSet type - WrapITK Python
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Jul 7 17:47:39 EDT 2009
Hi Carlos,
Le 7 juil. 09 à 23:13, Carlos Moro a écrit :
> Hi all,
>
> It seems expecting a _p_itk__PointTdouble_3u_t, but how to get one
> such?
I shouldn't have talked about GetPointer() without looking at the
expected type. GetPointer() has nothing to do with your problem -
Sorry about that.
> _p_itk__PointTdouble_3u_t is the type itk::Point< double, 3 >. You
> can create an object of that type with
itk.Point[itk.D, 3]()
or
itk.Point.D3()
I never tried to get the values by passing a itk::Point pointer to a
method - please let me know how it works.
Gaëtan
>
> Best regards,
> Carlos
>
> On Tue, Jul 7, 2009 at 8:03 PM, Carlos Moro <cfmoro at gmail.com> wrote:
> Hi all,
>
> Thank you so much Gaëtan. What type should pp be, that has method
> GetPointer()? Can you please post how to instantiate pp so it can be
> passed to that function?
>
> Best regards,
> Carlos
>
> 2009/7/6 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>
>
>
> You can use GetPointer():
>
> pointExists = pointsSet.GetPoint(1, pp.GetPointer())
>
> Or you can use WrapITK from googlecode - GetPointer() is not
> required anymore in such situation with that version.
>
> http://code.google.com/p/wrapitk/
>
> 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
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
--
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/20090707/161d1a5d/attachment.pgp>
More information about the Insight-users
mailing list