[Insight-users] question about itk::Histogram

Luis Ibanez luis.ibanez at kitware.com
Thu, 05 Feb 2004 17:26:41 -0500


Hi Johny,


Please look at the example

     Insight/Examples/Statistics/
                        ImageHistogram1.cxx

Since you already put the voxel values into a sample,
you can skip the part of the code in this example that
is using the ScalarImageToListAdaptor. Just start by
using the class

      ListSampleToHistogramGenerator<>

http://www.itk.org/Insight/Doxygen/html/classitk_1_1Statistics_1_1ListSampleToHistogramGenerator.html




Regards,


   Luis


-------------------
Zhuang Song wrote:

> Hi,
> I want to obtain the histogram of intensities of some voxels in an image.
> I have push the data into a sample, but I can't find a function to
> feed the sample into itk::Hisrogram object. How does it work?
> 
> thanks,
> Johnny
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>