[ITK] [ITK-users] itk::RayCastInterpolateImageFunction for ITK Python Wrap
Matt McCormick
matt.mccormick at kitware.com
Sat Mar 26 21:59:09 EDT 2016
Hi,
Here are some pointers to relevant documentation:
How to add wrapping for a filter:
http://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch9.html#x50-1500009.5
How to perform a review:
https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/PerformAGerritReview/index.html
How to download ITK with Git: http://www.itk.org/Wiki/ITK/Git
Hope this helps,
Matt
On Sat, Mar 26, 2016 at 2:41 PM, Michka Popoff <michkapopoff at gmail.com> wrote:
> I can notify you once it is merged to the master branch of ITK.
> This should be fast (as soon as it gets reviewed).
>
> Wrapping new functions/classes is made by adding a .wrap file
> in the corresponding “wrapping" folder of the module.
> I often just copy-paste a similar .wrap file an adapt it. There are
> sometimes
> some surprise, and the .wrap file needs to be tweaked.
>
> Not sure if we have a guide on how to do it.
> Some cases like this one are really easy to implement, some others are more
> involved.
>
> Once the patch is merged, you will need to build ITK from source.
> This is pretty easy: http://www.itk.org/Wiki/ITK/Configuring_and_Building
> We can assist you if there are problems.
>
> Writing your own filter in Python is doable; but I never tried such thing.
> It would be a nice proof-of-concept to get something like this to run.
> But this is probably more work than it is worth.
>
> If you can wait a few days until the patch is merged, and are willing
> to build ITK from source, the python solution is probably the easiest.
>
> Michka
>
>
> 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
>
_____________________________________
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