[Insight-users] Re: How to Wrapper the ImageToHistogramGenerator Class

Oliveira Marcelo marceloitk at yahoo.com.br
Fri Jun 17 11:05:02 EDT 2005


Hi Brad, tanx for your reply !!!

Is good to see a light !!!

I wrote the following wapper and got the erros.


#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
{
typedef
itk::Statistics::ImageToHistogramGenerator<image::US2>::ImageToHistogramGenerator
  	itkImageToHistogramGeneratorUS2;

typedef 
itk::Statistics::ImageToHistogramGenerator<image::US2>::Pointer::SmartPointer
 								itkImageToHistogramGeneratorUS2_Pointer;
   }
}

#endif



local/oliveiramc/Doutorado/Insight_bin/Wrapping/CSwig/Numerics:
building default_target
Building dependencies. cmake.depends...
Building wrap_itkImageToHistogramGenerator.xml from 
/local/oliveiramc/Doutorado/Insight_bin/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.xml...
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkSample.h:
In instantiation of `itk::Statistics::Sample<short
unsigned int>':
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:59:
  instantiated from
`itk::Statistics::ListSampleBase<short unsigned int>'
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:59:
  instantiated from
`itk::Statistics::ImageToListAdaptor<image::US2, short
unsigned int>'
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:59:
  instantiated from
`itk::Statistics::ImageToHistogramGenerator<image::US2>'
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:31:
  instantiated from here
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkSample.h:93:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkSample.h:103:
error: `
   short unsigned int' is not an aggregate type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkListSampleBase.h:
In instantiation of
`itk::Statistics::ListSampleBase<short unsigned int>':
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:59:
  instantiated from
`itk::Statistics::ImageToListAdaptor<image::US2, short
unsigned int>'
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:59:
  instantiated from
`itk::Statistics::ImageToHistogramGenerator<image::US2>'
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:31:
  instantiated from here
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkListSampleBase.h:54:
error: no
   type named `MeasurementType' in `class
itk::Statistics::Sample<short
   unsigned int>'
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkListSampleBase.h:60:
error: `
   short unsigned int' is not an aggregate type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:
In instantiation of
`itk::Statistics::ImageToHistogramGenerator<image::US2>':
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:31:
  instantiated from here
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:61:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:62:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:67:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:69:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:71:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:72:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:73:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:74:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:75:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.txx:51:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.txx:71:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.txx:90:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.txx:99:
error: `
   short unsigned int' is not a class, struct, or
union type
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:
In instantiation of
`itk::Statistics::ImageToHistogramGenerator<image::US2>':
/local/oliveiramc/Doutorado/Insight/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.cxx:31:
  instantiated from here
/local/oliveiramc/Doutorado/Insight/Code/Numerics/Statistics/itkImageToHistogramGenerator.h:109:
error: `
   short unsigned int' is not a class, struct, or
union type
make[5]: ***
[/local/oliveiramc/Doutorado/Insight_bin/Wrapping/CSwig/Numerics/wrap_itkImageToHistogramGenerator.xml]
Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Numerics] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping_CSwig] Error 2
make: *** [default_target] Error 2



	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/


More information about the Insight-users mailing list