ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkListSample.h>
This class is the native implementation of the a Sample with an STL container.
ListSample stores measurements in a list type structure (as opposed to a Histogram, etc.). ListSample allows duplicate measurements. ListSample is not sorted.
ListSample does not allow the user to specify the frequency of a measurement directly. The GetFrequency() methods returns 1 if the measurement exists in the list, 0 otherwise.
Definition at line 51 of file itkListSample.h.
typedef Superclass::AbsoluteFrequencyType itk::Statistics::ListSample< TMeasurementVector >::AbsoluteFrequencyType |
Frequency value type
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 70 of file itkListSample.h.
typedef SmartPointer< const Self > itk::Statistics::ListSample< TMeasurementVector >::ConstPointer |
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 58 of file itkListSample.h.
typedef Superclass::InstanceIdentifier itk::Statistics::ListSample< TMeasurementVector >::InstanceIdentifier |
InstanceIdentifier typedef. This identifier is a unique sequential id for each measurement vector in a Sample subclass.
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 72 of file itkListSample.h.
typedef std::vector< MeasurementVectorType > itk::Statistics::ListSample< TMeasurementVector >::InternalDataContainerType |
internal data container type
Definition at line 79 of file itkListSample.h.
typedef Superclass::MeasurementType itk::Statistics::ListSample< TMeasurementVector >::MeasurementType |
ValueType of a measurement (ValueType of a component of the MeasurementVector
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 69 of file itkListSample.h.
typedef Superclass::MeasurementVectorSizeType itk::Statistics::ListSample< TMeasurementVector >::MeasurementVectorSizeType |
Typedef for the length of each measurement vector
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 68 of file itkListSample.h.
typedef Superclass::MeasurementVectorType itk::Statistics::ListSample< TMeasurementVector >::MeasurementVectorType |
Typedefs inherited from the superclass
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 64 of file itkListSample.h.
typedef SmartPointer< Self > itk::Statistics::ListSample< TMeasurementVector >::Pointer |
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 57 of file itkListSample.h.
typedef ListSample itk::Statistics::ListSample< TMeasurementVector >::Self |
Standard class typedef.
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 55 of file itkListSample.h.
typedef Sample< TMeasurementVector > itk::Statistics::ListSample< TMeasurementVector >::Superclass |
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 56 of file itkListSample.h.
typedef Superclass::TotalAbsoluteFrequencyType itk::Statistics::ListSample< TMeasurementVector >::TotalAbsoluteFrequencyType |
Total frequency type
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 71 of file itkListSample.h.
typedef MeasurementVectorType itk::Statistics::ListSample< TMeasurementVector >::ValueType |
Value type of a measurement (component of the measurement vector)
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 76 of file itkListSample.h.
itk::Statistics::ListSample< TMeasurementVector >::ListSample | ( | ) | [protected] |
virtual itk::Statistics::ListSample< TMeasurementVector >::~ListSample | ( | ) | [inline, protected, virtual] |
Definition at line 273 of file itkListSample.h.
itk::Statistics::ListSample< TMeasurementVector >::ListSample | ( | const Self & | ) | [private] |
Iterator itk::Statistics::ListSample< TMeasurementVector >::Begin | ( | void | ) | [inline] |
returns an iterator that points to the beginning of the container
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 239 of file itkListSample.h.
Referenced by itk::Statistics::ListSample< TMeasurementVector >::ConstIterator::ConstIterator().
ConstIterator itk::Statistics::ListSample< TMeasurementVector >::Begin | ( | void | ) | const [inline] |
returns an iterator that points to the beginning of the container
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 255 of file itkListSample.h.
void itk::Statistics::ListSample< TMeasurementVector >::Clear | ( | ) |
Removes all the elements in the Sample
virtual::itk::LightObject::Pointer itk::Statistics::ListSample< TMeasurementVector >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Iterator itk::Statistics::ListSample< TMeasurementVector >::End | ( | void | ) | [inline] |
returns an iterator that points to the end of the container
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 247 of file itkListSample.h.
ConstIterator itk::Statistics::ListSample< TMeasurementVector >::End | ( | void | ) | const [inline] |
returns an iterator that points to the end of the container
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
Definition at line 263 of file itkListSample.h.
AbsoluteFrequencyType itk::Statistics::ListSample< TMeasurementVector >::GetFrequency | ( | InstanceIdentifier | id | ) | const [virtual] |
Get the frequency of a measurement. Returns 1 if the measurement exist.
Implements itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
const MeasurementVectorType& itk::Statistics::ListSample< TMeasurementVector >::GetMeasurementVector | ( | InstanceIdentifier | id | ) | const [virtual] |
Get the measurement associated with the specified InstanceIdentifier
Implements itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
virtual const char* itk::Statistics::ListSample< TMeasurementVector >::GetNameOfClass | ( | ) | const [virtual] |
Standard macros
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
TotalAbsoluteFrequencyType itk::Statistics::ListSample< TMeasurementVector >::GetTotalFrequency | ( | ) | const [virtual] |
Get the total frequency of the sample. This is equivalent to the size of the sample.
Implements itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
virtual void itk::Statistics::ListSample< TMeasurementVector >::Graft | ( | const DataObject * | thatObject | ) | [virtual] |
Method to graft another sample
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
static Pointer itk::Statistics::ListSample< TMeasurementVector >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
void itk::Statistics::ListSample< TMeasurementVector >::operator= | ( | const Self & | ) | [private] |
Reimplemented from itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
void itk::Statistics::ListSample< TMeasurementVector >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [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::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
void itk::Statistics::ListSample< TMeasurementVector >::PushBack | ( | const MeasurementVectorType & | mv | ) |
Inserts a measurement at the end of the list
void itk::Statistics::ListSample< TMeasurementVector >::Resize | ( | InstanceIdentifier | newsize | ) |
Resize the container. Using Resize() and then SetMeasurementVector() is about nine times faster than usign PushBack() continously. Which means that whenever the total number of Measurement vectors is known, the users should prefer calling Resize() first and then set the values by calling SetMeasurementVector(). On the other hand, if the number of measurement vectors is not known from the beginning, then calling PushBack() sequentially is a convenient option.
void itk::Statistics::ListSample< TMeasurementVector >::SetMeasurement | ( | InstanceIdentifier | id, |
unsigned int | dim, | ||
const MeasurementType & | value | ||
) |
Set a component a measurement to a particular value.
void itk::Statistics::ListSample< TMeasurementVector >::SetMeasurementVector | ( | InstanceIdentifier | id, |
const MeasurementVectorType & | mv | ||
) |
Replace a measurement with a different measurement
InstanceIdentifier itk::Statistics::ListSample< TMeasurementVector >::Size | ( | ) | const [virtual] |
Get the number of measurement vectors in the sample
Implements itk::Statistics::Sample< TMeasurementVector >.
Reimplemented in itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >, itk::Statistics::ImageToListSampleAdaptor< TImage >, itk::Statistics::PointSetToListSampleAdaptor< TPointSet >, and itk::Statistics::VectorContainerToListSampleAdaptor< TVectorContainer >.
InternalDataContainerType itk::Statistics::ListSample< TMeasurementVector >::m_InternalContainer [private] |
Definition at line 280 of file itkListSample.h.