[Insight-users] WrapITK in ITK4
Tobias Maier
tobias.maier at unibas.ch
Wed Apr 18 10:45:53 EDT 2012
Thanks, for the HeaderTest patch.
The code for the PyBuffer ITK4 module is aviable at github:
https://github.com/tobiasmaier/itkPyBuffer
I try not to change the behaviour of the old PyBuffer, but the new
features (not swapping axes and VectorImages) are still work in progress.
Regards
Tobias
On 04/17/2012 04:50 PM, Matt McCormick wrote:
> PS. Here is a patch to fix the HeaderTest failure with that module:
>
> http://review.source.kitware.com/#/c/5220/
>
> On Mon, Apr 16, 2012 at 9:32 AM, Matt McCormick
> <matt.mccormick at kitware.com> wrote:
>> Hi Tobias,
>>
>>>
>>> I'm a bit uncertain about the state of WrapITK in ITK4.
>>> Building any external projects like PyBuffer (from
>>> Wrapping/ExternalProjects) or the example in the wiki
>>> (http://www.itk.org/Wiki/ITK/Release_4/Wrapping/BuildProcess) does not work
>>> any more. The wiki example also uses deprecated macros.
>>
>> WrapITK has had even more improvements and tighter integration with
>> ITKv4 since that page was last updated. You will notice that most
>> modules now have a 'wrapping' directory in addition to their 'test'
>> and 'include' and 'src' directories. This directory contains the
>> wrapping rules for the module.
>>>
>>> Is wrapping with WrapITK still the way to go or should one have a look at
>>> SimpleITK?
>>> If WrapITK will still be supported in the future, does everything have to be
>>> an ITK module or are external projects still an option.
>>>
>>
>> WrapITK will certainly be supported in the future. Using WrapITK or
>> SimpleITK wrapping are both valid approaches to accessing ITK in a
>> high level language. The choice of interface depends on your needs
>> and preferences. WrapITK provides an interface that shadows the ITK
>> API, including the ability/burden (depending on your point of view),
>> to specify the template parameters. There is better coverage, and
>> correspondence with the C++ is very good. On the other hand,
>> SimpleITK has a simpler interface without the need to specify template
>> parameters. The amount of code required to do the same operation in
>> SimpleITK is smaller. The interface depends on your preferences and
>> needs at the time. In the future, we hope to improve the ability to
>> go back and forth between the two.
>>
>>> The attachment contains PyBuffer as ITK module that works with ITK4.
>>
>> Outstanding! I think this approach is the way to go. Are you hosting
>> this code in a repository?
>>
>> Thanks,
>> Matt
>>
>>>
>>> Best Regards,
>>> Tobias
>>>
>>> _____________________________________
>>> 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://www.itk.org/mailman/listinfo/insight-users
>>>
More information about the Insight-users
mailing list