[Insight-users] Custom C++ ITK Class to C# using SWIG

Dan Mueller dan.muel at gmail.com
Tue Nov 27 18:22:18 EST 2012


Hi Sam,

(I'm not sure if you are still struggling with this, but for the sake
of others who may search the mailing list, here is an answer).

I have created a Wiki page which describes the steps to create a
custom C# wrapper around C++ ITK functionality:
    http://www.itk.org/Wiki/ITK/Using_ITK_from_.NET

One of the tricks is to make sure that ITK, wrapper DLL, and .NET exe
are all built with the same target platform (i.e. Win32/x86 or
Win64/x64). If you don't, the .NET program will throw a
BadImageFormatException.

HTH

Cheers

On 24 November 2012 08:14, Sam <sistephan at gmail.com> wrote:
> Are there any steps to use SWIG to create a C# wrapper class out of a custom
> C++ ITK .h/.cpp class?
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Custom-C-ITK-Class-to-C-using-SWIG-tp7581732.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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