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

Matt McCormick matt.mccormick at kitware.com
Thu Mar 31 15:48:11 EDT 2016


@Kent, yes, better documentation is now available in the ITK Software
Guide (and there have been many recent improvements to the Python
wrapping):

  http://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch3.html#x34-410003.7

To enable VTK Python wrapping, set the CMake build option

  VTK_WRAP_PYTHON=ON


@Fabio, the Visual Studio build errors have now been resolved in ITK
Git master.  Running

  cd /path/to/ITK
  git checkout master
  git pull

will result in the updated version.


There are changes that will soon be merged into ITK Git master that
will greatly reduce Visual Studio wrapping build times.

Thanks,
Matt



On Thu, Mar 31, 2016 at 3:08 PM, Kent Ogden <ogdenk at upstate.edu> wrote:
> 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
>
>
>
> _____________________________________
> 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 Insight-users mailing list