[Insight-users] Re: How to Wrapper the ImageToHistogramGenerator
Class
Brad King
brad.king at kitware.com
Fri Jun 17 10:18:40 EDT 2005
Gaetan Lehmann wrote:
>
> Hi Brad,
> Hi Marcelo,
>
> There are several problem :
>
> + cable swig seems to have problem with itk::Statistics namespace
>
> Here is the error I get :
>
> Building object file wrap_itkImageToHistogramGeneratorPython.o...
> /home/glehmann/itk/itk-mima2/build/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGeneratorPython.cxx:
> In function `PyObject*
> _wrap_itkImageToHistogramGeneratorUS2_Pointer_GetPointer(PyObject*,
> PyObject*)':
> /home/glehmann/itk/itk-mima2/build/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGeneratorPython.cxx:927:
> error: `itk::Statistics' has not been declared
> .....
>
> with the wrapper :
>
> #include "itkImage.h"
>
> #ifdef CABLE_CONFIGURATION
> #include "itkCSwigImages.h"
> #include "itkCSwigMacros.h"
> #include "itkScalarImageToHistogramGenerator.h"
You have to include files for your classes outside the
CABLE_CONFIGURATION ifdef. The generated wrappers actually #include the
configuration file itself but do not define this macro.
-Brad
More information about the Insight-users
mailing list