ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkSample.h>
A collection of measurements for statistical analysis.
Sample represents a set of measurements for statistical analysis. Sample is templated over a measurement vector. The measurement vector encapsulates the set of values associated with a single measurement. For instance, a measurement vector may contain an image intensity of a pixel and the gradient magnitude at that pixel.
Data within a sample can be accessed via an InstanceIdentifier. InstanceIdentifiers have different forms and meanings depending on the type of sample. For ListSamples, the InstanceIdentifier is an index into the corresponding list. In this case, the InstanceIndentifier corresponds to a particular measurement stored in the Sample. For Histograms, an InstanceIdentifier corresponds to a particular bin in the N-dimensional histogram. In other words, the InstanceIdentifier in a histogram does not correspond to a specific measurement used to build the histogram but to the "bin" in which a number of original measurements were "accumulated".
Recent API changes: The static const macro to get the length of a measurement vector, 'MeasurementVectorSize' has been removed to allow the length of a measurement vector to be specified at run time. Please use the function GetMeasurementVectorSize() instead.
Definition at line 61 of file itkSample.h.
typedef MeasurementVectorTraits::AbsoluteFrequencyType itk::Statistics::Sample< TMeasurementVector >::AbsoluteFrequencyType |
Frequency value type
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 82 of file itkSample.h.
typedef SmartPointer< const Self > itk::Statistics::Sample< TMeasurementVector >::ConstPointer |
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 68 of file itkSample.h.
typedef MeasurementVectorTraits::InstanceIdentifier itk::Statistics::Sample< TMeasurementVector >::InstanceIdentifier |
InstanceIdentifier typedef. This identifier is a unique sequential id for each measurement vector in a Sample subclass.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 89 of file itkSample.h.
typedef MeasurementVectorTraitsTypes< MeasurementVectorType >::ValueType itk::Statistics::Sample< TMeasurementVector >::MeasurementType |
ValueType of a measurement (ValueType of a component of the MeasurementVector
Reimplemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 79 of file itkSample.h.
typedef unsigned int itk::Statistics::Sample< TMeasurementVector >::MeasurementVectorSizeType |
Typedef for the length of each measurement vector
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 92 of file itkSample.h.
typedef TMeasurementVector itk::Statistics::Sample< TMeasurementVector >::MeasurementVectorType |
MeasurementVector typedef support
Reimplemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 71 of file itkSample.h.
typedef SmartPointer< Self > itk::Statistics::Sample< TMeasurementVector >::Pointer |
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 67 of file itkSample.h.
typedef Sample itk::Statistics::Sample< TMeasurementVector >::Self |
Standard class typedefs
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 65 of file itkSample.h.
typedef DataObject itk::Statistics::Sample< TMeasurementVector >::Superclass |
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 66 of file itkSample.h.
typedef NumericTraits< AbsoluteFrequencyType >::AccumulateType itk::Statistics::Sample< TMeasurementVector >::TotalAbsoluteFrequencyType |
Total frequency type
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 85 of file itkSample.h.
itk::Statistics::Sample< TMeasurementVector >::Sample | ( | ) | [inline, protected] |
Definition at line 173 of file itkSample.h.
virtual itk::Statistics::Sample< TMeasurementVector >::~Sample | ( | ) | [inline, protected, virtual] |
Definition at line 179 of file itkSample.h.
itk::Statistics::Sample< TMeasurementVector >::Sample | ( | const Self & | ) | [private] |
virtual AbsoluteFrequencyType itk::Statistics::Sample< TMeasurementVector >::GetFrequency | ( | InstanceIdentifier | id | ) | const [pure virtual] |
Get the frequency of a measurement specified by instance identifier.
Implemented in itk::Statistics::ListSample< TMeasurementVector >.
virtual const MeasurementVectorType& itk::Statistics::Sample< TMeasurementVector >::GetMeasurementVector | ( | InstanceIdentifier | id | ) | const [pure virtual] |
Get the measurement associated with a particular InstanceIdentifier.
Implemented in itk::Statistics::ListSample< TMeasurementVector >.
virtual MeasurementVectorSizeType itk::Statistics::Sample< TMeasurementVector >::GetMeasurementVectorSize | ( | ) | const [virtual] |
Get method for the length of the measurement vector
Reimplemented in itk::Statistics::ImageToListSampleAdaptor< TImage >.
virtual const char* itk::Statistics::Sample< TMeasurementVector >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods)
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
virtual TotalAbsoluteFrequencyType itk::Statistics::Sample< TMeasurementVector >::GetTotalFrequency | ( | ) | const [pure virtual] |
Get the total frequency of the sample.
Implemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
virtual void itk::Statistics::Sample< TMeasurementVector >::Graft | ( | const DataObject * | thatObject | ) | [inline, virtual] |
Method to graft another sample
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, and itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 161 of file itkSample.h.
void itk::Statistics::Sample< TMeasurementVector >::operator= | ( | const Self & | ) | [private] |
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
void itk::Statistics::Sample< TMeasurementVector >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [inline, protected, virtual] |
Method for grafting the content of one data object into another one. This method is intended to be overloaded by derived classes. Each one of them should use dynamic_casting in order to verify that the grafted object is actually of the same type as the class on which the Graft() method was invoked.
Reimplemented from itk::DataObject.
Reimplemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 181 of file itkSample.h.
virtual void itk::Statistics::Sample< TMeasurementVector >::SetMeasurementVectorSize | ( | MeasurementVectorSizeType | s | ) | [inline, virtual] |
Set method for the length of the measurement vector
Definition at line 110 of file itkSample.h.
virtual InstanceIdentifier itk::Statistics::Sample< TMeasurementVector >::Size | ( | ) | const [pure virtual] |
Get the size of the sample (number of measurements)
Implemented in itk::Statistics::Histogram< TMeasurement, TFrequencyContainer >, itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSample< TVectorContainer::Element >, itk::Statistics::ListSample< MeasurementVectorPixelTraits< TImage::PixelType >::MeasurementVectorType >, itk::Statistics::ListSample< TPointSet::PointType >, itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
MeasurementVectorSizeType itk::Statistics::Sample< TMeasurementVector >::m_MeasurementVectorSize [private] |
Definition at line 192 of file itkSample.h.