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

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Jun 17 13:12:23 EDT 2005


You should use ScalarImageToHistogramGenerator, as said in my previous  
mail...

Many thanks for your help Brad, it works for me now :-)

On Fri, 17 Jun 2005 17:46:39 +0200, Brad King <brad.king at kitware.com>  
wrote:

> Oliveira Marcelo wrote:
>> typedef
>> itk::Statistics::ImageToHistogramGenerator<image::US2>::ImageToHistogramGenerator
>>   	itkImageToHistogramGeneratorUS2;
>
> This instantiation won't even work in C++.  Look at the documentation  
> for ImageToHistogramGenerator:
>
> /** \class ImageToHistogramGenerator
>   *  \brief This class generates an histogram from an image.
>   *
>   *  The concept of Histogram in ITK is quite generic. It has been  
> designed to
>   *  manage multiple components data. This class facilitates the  
> computation of
>   *  an histogram from an image. Internally it creates a List that is  
> feed into
>   *  the ListSampleToHistogramGenerator.
>   *
>   */
>
> It is meant only for multiple component data, not scalar images like  
> image::US2.
>
> -Brad



-- 
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 29 66
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
Web: http://voxel.jouy.inra.fr


More information about the Insight-users mailing list