#include <itkMembershipSample.h>
Inheritance diagram for itk::Statistics::MembershipSample:
[NOHEADER] | |
virtual const char * | GetClassName () const |
Pointer | New () |
Public Types | |
typedef MembershipSample | Self |
typedef Sample< typename TSample::MeasurementVectorType > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef TSample::MeasurementVectorType | MeasurementVectorType |
typedef TSample::MeasurementType | MeasurementType |
typedef TSample::InstanceIdentifier | InstanceIdentifier |
typedef TSample::FrequencyType | FrequencyType |
typedef std::vector< unsigned int > | UniqueClassLabelsType |
typedef itk::hash_map< InstanceIdentifier, unsigned int > | ClassLabelHolderType |
typedef Subsample< TSample > | ClassSampleType |
Public Methods | |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize) | |
void | SetSample (TSample *sample) |
TSample * | GetSample () |
void | SetNumberOfClasses (unsigned int numberOfClasses) |
unsigned int | GetNumberOfClasses () const |
unsigned int | GetNumberOfInstances () const |
void | AddInstance (const unsigned int &classLabel, const InstanceIdentifier &id) |
unsigned int | GetClassLabel (const InstanceIdentifier &id) const |
int | GetInternalClassLabel (const unsigned int classLabel) const |
unsigned int | GetClassSampleSize (const unsigned int &classLabel) const |
ClassSampleType * | GetClassSample (const unsigned int &classLabel) |
ClassLabelHolderType * | GetClassLabels () |
unsigned int | Size (void) const |
unsigned int | Size (const unsigned int &dimension) const |
MeasurementVectorType & | GetMeasurementVector (const InstanceIdentifier &id) |
MeasurementType & | GetMeasurement (const InstanceIdentifier &id, const unsigned int &dimension) |
FrequencyType | GetFrequency (const InstanceIdentifier &id) const |
FrequencyType | GetTotalFrequency (const unsigned int &d) const |
void | Resize (unsigned int n) |
Iterator | Begin () |
Iterator | End () |
Protected Methods | |
MembershipSample () | |
virtual | ~MembershipSample () |
void | PrintSelf (std::ostream &os, Indent indent) const |
Friends | |
class | Iterator |
This class does not store any measurement data. In a sense, you can think it as an additional information to basic samples (such as Histogram, PointSetListSampleAdaptor, and ImageToListAdaptor). The additional information is a class label for a measurement vector. Obviously without such basic types of sample, this one is meaningless. You can call any basic methods that has been defined in the Sample class such as GetMeasurementVector and GetFrequency. You can query the class label for an instance using an instance-identifier. Another new and important method is the GetClassSample method. With a given class label, it returns a pointer to the Subsample object that has all the instance-identifiers of instances that belong to the class.
This class is templated over the type of the basic sample. To use all the method, you should first plug in a basic type sample using the SetSample method
Definition at line 51 of file itkMembershipSample.h.
|
Typedef for the storage that holds a class label for each instance. The relationship between instances and class label is one-to-one Definition at line 84 of file itkMembershipSample.h. |
|
Typedef for each subsample that stores instance identifers of instances that belong to a class Definition at line 88 of file itkMembershipSample.h. |
|
Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 70 of file itkMembershipSample.h. |
|
Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 69 of file itkMembershipSample.h. |
|
Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 68 of file itkMembershipSample.h. |
|
Typedefs for Measurement vector, measurement, Instance Identifier, frequency, size, size element value from the template argument TSample Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 67 of file itkMembershipSample.h. |
|
Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 58 of file itkMembershipSample.h. |
|
Standard class typedefs. Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 56 of file itkMembershipSample.h. |
|
Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. Definition at line 57 of file itkMembershipSample.h. |
|
vector of unique class labels that will be used for mapping internal continuous class label with real class labels Definition at line 80 of file itkMembershipSample.h. |
|
|
|
Definition at line 234 of file itkMembershipSample.h. References HardConnectedComponentImageFilter::PrintSelf(), and HardConnectedComponentImageFilter::Self. |
|
|
|
Definition at line 143 of file itkMembershipSample.h. |
|
Definition at line 149 of file itkMembershipSample.h. |
|
|
|
Definition at line 111 of file itkMembershipSample.h. |
|
Standard macros Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
|
|
|
|
returns the frequency of the instance which is identified by the 'id' Implements itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
|
|
returns the measurement element which is the 'n'-th element in the 'd' dimension of the measurement vector |
|
retunrs the measurement of the instance which is identified by the 'id' Implements itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
|
|
Implements itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
|
|
returns the total frequency for the 'd' dimension Implements itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
MeasurementVectorSize enum from super class |
|
Standard macros Reimplemented from itk::Object. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
Definition at line 135 of file itkMembershipSample.h. |
|
|
|
Plug in the actual sample data |
|
returns the number of elements in the 'dimension' dimension. Implements itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
returns the number of elements in each dimension Implements itk::Statistics::Sample< TSample::MeasurementVectorType >. |
|
Definition at line 141 of file itkMembershipSample.h. |