[Insight-users] How to Wrapper the ImageToHistogramGenerator Class

Oliveira Marcelo marceloitk at yahoo.com.br
Tue Jun 14 14:49:31 EDT 2005


Hi users and Gaetan,

Gaetan will be a pleasure integrate my wrappers in
your branch
(http://voxel.jouy.inra.fr/darcs/itk-mima2). Tanx for
your wrappers.

Ive been trying to wrapper the class
ImageToHistogramGenerator. Following the hints of
Gaetan and the http://www.itk.org/Wiki/ITK_Scripting

i wrote the wrap_itkImageToHistogramGenerator.cxx
I dont know what i do with TImageType. 

#include "itkImage.h"
#include "itkImageToHistogramGenerator.h"

#ifdef CABLE_CONFIGURATION
#include "itkCSwigMacros.h"
#include "itkCSwigImages.h"

namespace _cable_
{
  const char* const group =   
ITK_WRAP_GROUP(itkImageToHistogramGenerator);
  namespace wrappers
  {
    ITK_WRAP_OBJECT1(ImageToHistogramGenerator,
image::F2, itkImageToHistogramGeneratorF2);
    ITK_WRAP_OBJECT1(ImageToHistogramGenerator,
image::F3, itkImageToHistogramGeneratorF3);
    
  }
}

#endif


And i got the errors:

local/oliveiramc/Doutorado/Insight_bin/Wrapping/CSwig/Numerics:
building default_target
Building wrap_itkImageToHistogramGenerator.xml from 
/local/oliveiramc/Doutorado/Insight_bin/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.xml...
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:31:
error: syntax
   error before `::' token
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:31:
error: syntax
   error before `::' token
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:32:
error: syntax
   error before `::' token
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:32:
error: syntax
   error before `::' token
make[5]: ***
[/local/oliveiramc/Doutorado/Insight_bin/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.xml]
Error 1





	
	
		
____________________________________________________
Yahoo! Mail, cada vez melhor: agora com 1GB de espaço grátis! http://mail.yahoo.com.br


More information about the Insight-users mailing list