[ITK] [ITK-users] itk::RayCastInterpolateImageFunction for ITK Python Wrap

Kent Ogden ogdenk at upstate.edu
Thu Mar 31 15:08:32 EDT 2016


On a related note, are there instructions somewhere for
building/installing Python wrapping for ITK (and VTK for that matter)? 
I have built ITK many times and use it in C++ regularly, but I would
love to have this functionality in Python, which I am just learning.
 
I have tried building ITK with Python wrapping On, and have specified
the needed directories appropriately (I think), but after I build the
INSTALL project, I don't see anything related to ITK in the Python
site-packages directory.  I'm sure I'm missing something simple in my
ignorance.
 
I am working in Windows 7 using VS 2015.
 
I have tried using the Python(x,y) distribution which has both ITK and
VTK, but I found some functionality was missing ( ImageToVTKImageFilter
for example).
 
Kent
 
 
On 26 Mar 2016, at 19:27, D'Isidoro Fabio <fisidoro at ethz.ch> wrote:



Thank you for your reply.
I miss the skills to test/review that patch. I do not know how to wrap
a C++ code to Python. Is there any relatively easy guide for it?
Also, what are my possibilities now? Writing my own RayCasting Filter
in Python and possibly use it as interpolator for the
ResampleImageFilter Filter? Or necessarily turn to C++ forgetting about
Python?
Thanks
From: Michka Popoff [mailto:michkapopoff at gmail.com] 
Sent: Samstag, 26. März 2016 19:16
To: D'Isidoro Fabio
Cc: insight-users at itk.org
Subject: Re: [ITK-users] itk::RayCastInterpolateImageFunction for ITK
Python Wrap
Hi
The function was not wrapped at all.
Most of them are, and the remaining are added slowly, mostly on-demand
(for the moment).
I made a patch which you can test/review here:
http://review.source.kitware.com/#/c/20945/
We can probably add it to the 4.9.1 release; else it will land in the
ITK 4.10 release.
Michka


On 26 Mar 2016, at 17:13, D'Isidoro Fabio <fisidoro at ethz.ch> wrote:
Hallo,
I am trying to implement my own Digital Radiograph Reconstruction
algorithm with ITK v 4.8 Python Wrap. I have looked on the web and found
examples that make use of the itk::RayCastInterpolateImageFunction.
However, it seems that this function has not been wrapped for Python
because I get the error:
‘LazyITKModule’ object has not attribute
‘RayCastInterpolateImageFunction’
Any help? Hast this been done in the new 4.9 Version or what do you
suggest for me to do?
Thank you.
Fabio
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

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://public.kitware.com/mailman/listinfo/insight-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160331/a37c213e/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list