[Insight-users] itk::ListSample Qn.
    Luis Ibanez 
    luis.ibanez at kitware.com
       
    Mon Dec 26 12:08:46 EST 2005
    
    
  
Hi Kalpathi,
Please read the ITK Software Guide,
         http://www.itk.org/ItkSoftwareGuide.pdf
In particular read,
Chapter 10, "Statistics", in pdf-pages 637-729.
Note that itk::ListSample is not a filter. Instead, it is
a data structure. It is designed to hold the data that you
feed to most of the Statistics algorithms.
The ListSample class is described in section 10.1.1
in pdf-page: 637.  The source code of the example
is available at
     Insight/
          Examples/
                 Statistics/
                       ListSample.cxx
You will see that the method for introducing values in
the list sample are:
    a) using "push_back" just like any other STL container
    b) calling SetMeasurementVector( id, vectorValue );
---
The Histogram class is described in section 10.1.3,
in pdf-page 645. You will see, in the example
     Insight/
          Examples/
                 Statistics/
                       Histogram.cxx
That you can put values in the histogram by invoking
the method:
      histogram->SetFrequency( bin, frequency )
Notice that the histogram is an Ndimensional histogram,
not just the traditional unidimensional one.
     Regards,
       Luis
---------------------------
Kalpathi Subramanian wrote:
> 
> I am trying to use this filter and understand most of it (and
> the itk::Histogram), but how do you go about putting in measurement values
> into this container?  I assume it builds up the frequency in
> each bin, as multiple items end up in the same bin?
> 
>     -- krs
> 
    
    
More information about the Insight-users
mailing list