#include <itkListSampleToHistogramGenerator.h>
Inheritance diagram for itk::Statistics::ListSampleToHistogramGenerator:
Public Types | |
typedef ListSampleToHistogramGenerator | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef Histogram< THistogramMeasurement, itkGetStaticConstMacro(MeasurementVectorSize), TFrequencyContainer | HistogramType ) |
typedef HistogramType::SizeType | HistogramSizeType |
Public Methods | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, TListSample::MeasurementVectorSize) | |
void | SetListSample (TListSample *list) |
void | SetMarginalScale (float scale) |
void | SetNumberOfBins (HistogramSizeType sizes) |
HistogramType * | GetOutput () |
void | Update () |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
ListSampleToHistogramGenerator () | |
virtual | ~ListSampleToHistogramGenerator () |
void | GenerateData () |
This class is templated over the type of ListSample (which is a subclass of ListSampleBase class), the type of measurement values in the histogram, and The type of the frequency container that will be used to store frequency in the result histogram.
User should plug in the input list sample and specify the number of bins along each dimension. For example, if a measurement vector of the input list sample has three components, the histogram will be three dimensional histogram. So, the SetNumberOfBins() function will accepts itk::Size object with three components.
The upper bound and lower bound of the histogram will be automatically determined by the FindSampleBound funtion in itkStatisticsAlgorithm.h & .txx. The hitogram object's upper bound will be slightly bigger than the uppper bound from the FindSampleBound to include the maximum values in the Histogram object. To extend the upper bound of the histogram. this class internally uses the intervals between two bins and the marginal scale constant that you can set using the SetMarginalScale(float) funtion. The default marginal scale constant value is 100, which means that the upper bound of Histogram will be upper bound of the list sample + (bin interval) / 100 ( = marginal scale).
The result historam has equi-size bins along each axe.
NOTE: The second template argument, THistogramMeasurement should be float-point type (float or double).
Definition at line 63 of file itkListSampleToHistogramGenerator.h.
|
Definition at line 86 of file itkListSampleToHistogramGenerator.h. |
|
Definition at line 84 of file itkListSampleToHistogramGenerator.h. |
|
Reimplemented from itk::Object. Definition at line 70 of file itkListSampleToHistogramGenerator.h. |
|
Standard typedefs Reimplemented from itk::Object. Definition at line 68 of file itkListSampleToHistogramGenerator.h. |
|
Reimplemented from itk::Object. Definition at line 69 of file itkListSampleToHistogramGenerator.h. |
|
|
|
Definition at line 106 of file itkListSampleToHistogramGenerator.h. |
|
|
|
Run-time type information (and related methods). Reimplemented from itk::Object. |
|
Definition at line 98 of file itkListSampleToHistogramGenerator.h. |
|
the number of components in a measurement vector |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
plug in the ListSample object Definition at line 89 of file itkListSampleToHistogramGenerator.h. |
|
Definition at line 92 of file itkListSampleToHistogramGenerator.h. |
|
Definition at line 95 of file itkListSampleToHistogramGenerator.h. |
|
Definition at line 101 of file itkListSampleToHistogramGenerator.h. References HardConnectedComponentImageFilter::GenerateData(). |