ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkMembershipSample.h>
Container for storing the instance-identifiers of other sample with their associated class labels.
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 ImageToListSampleAdaptor). 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 56 of file itkMembershipSample.h.
Classes | |
class | ConstIterator |
class | Iterator |
Protected Member Functions | |
MembershipSample () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~MembershipSample () |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
int | GetInternalClassLabel (const ClassLabelType classLabel) const |
MembershipSample (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ClassLabelHolderType | m_ClassLabelHolder |
std::vector< ClassSamplePointer > | m_ClassSamples |
unsigned int | m_NumberOfClasses |
SampleConstPointer | m_Sample |
UniqueClassLabelsType | m_UniqueClassLabels |
virtual const char * | GetNameOfClass () const |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
static Pointer | New () |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::DataObject | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static void | SetGlobalReleaseDataFlag (bool val) |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
typedef SampleType::AbsoluteFrequencyType itk::Statistics::MembershipSample< TSample >::AbsoluteFrequencyType |
Definition at line 78 of file itkMembershipSample.h.
typedef itksys::hash_map< InstanceIdentifier, ClassLabelType > itk::Statistics::MembershipSample< TSample >::ClassLabelHolderType |
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 88 of file itkMembershipSample.h.
typedef IdentifierType itk::Statistics::MembershipSample< TSample >::ClassLabelType |
Definition at line 81 of file itkMembershipSample.h.
typedef ClassSampleType::ConstPointer itk::Statistics::MembershipSample< TSample >::ClassSampleConstPointer |
Definition at line 94 of file itkMembershipSample.h.
typedef ClassSampleType::Pointer itk::Statistics::MembershipSample< TSample >::ClassSamplePointer |
Definition at line 93 of file itkMembershipSample.h.
typedef Subsample< SampleType > itk::Statistics::MembershipSample< TSample >::ClassSampleType |
Typedef for each subsample that stores instance identifiers of instances that belong to a class
Definition at line 92 of file itkMembershipSample.h.
typedef SmartPointer< const Self > itk::Statistics::MembershipSample< TSample >::ConstPointer |
Definition at line 63 of file itkMembershipSample.h.
typedef SampleType::InstanceIdentifier itk::Statistics::MembershipSample< TSample >::InstanceIdentifier |
Definition at line 75 of file itkMembershipSample.h.
typedef SampleType::MeasurementType itk::Statistics::MembershipSample< TSample >::MeasurementType |
Definition at line 74 of file itkMembershipSample.h.
typedef SampleType::MeasurementVectorType itk::Statistics::MembershipSample< TSample >::MeasurementVectorType |
Definition at line 73 of file itkMembershipSample.h.
typedef SmartPointer< Self > itk::Statistics::MembershipSample< TSample >::Pointer |
Definition at line 62 of file itkMembershipSample.h.
typedef SampleType::ConstPointer itk::Statistics::MembershipSample< TSample >::SampleConstPointer |
Definition at line 76 of file itkMembershipSample.h.
typedef TSample itk::Statistics::MembershipSample< TSample >::SampleType |
Typedefs for Measurement vector, measurement, Instance Identifier, frequency, size, size element value from the template argument TSample
Definition at line 67 of file itkMembershipSample.h.
typedef MembershipSample itk::Statistics::MembershipSample< TSample >::Self |
Standard class typedefs.
Definition at line 60 of file itkMembershipSample.h.
typedef DataObject itk::Statistics::MembershipSample< TSample >::Superclass |
Definition at line 61 of file itkMembershipSample.h.
typedef SampleType::TotalAbsoluteFrequencyType itk::Statistics::MembershipSample< TSample >::TotalAbsoluteFrequencyType |
Definition at line 79 of file itkMembershipSample.h.
typedef std::vector< ClassLabelType > itk::Statistics::MembershipSample< TSample >::UniqueClassLabelsType |
vector of unique class labels that will be used for mapping internal continuous class label with real class labels
Definition at line 84 of file itkMembershipSample.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 292 of file itkMembershipSample.h.
|
private |
void itk::Statistics::MembershipSample< TSample >::AddInstance | ( | const ClassLabelType & | classLabel, |
const InstanceIdentifier & | id | ||
) |
Adds an instance from the source sample to this container. The first argument is the class label for that instance. The second argument is the instance identifier from the source identifier that is going to be included this container.
|
inline |
This method returns an iterator to the beginning of the measurement vectors
Definition at line 260 of file itkMembershipSample.h.
|
inline |
Definition at line 276 of file itkMembershipSample.h.
|
virtual |
Standard macros
Reimplemented from itk::Object.
|
inline |
This method returns an iterator to the beginning of the measurement vectors
Definition at line 269 of file itkMembershipSample.h.
|
inline |
Definition at line 283 of file itkMembershipSample.h.
unsigned int itk::Statistics::MembershipSample< TSample >::GetClassLabel | ( | const InstanceIdentifier & | id | ) | const |
Gets the class label for the instance that has the instance identifier, id.
const ClassLabelHolderType itk::Statistics::MembershipSample< TSample >::GetClassLabelHolder | ( | ) | const |
Gets the class labels that corresponding to the each instance in this container.
const ClassSampleType* itk::Statistics::MembershipSample< TSample >::GetClassSample | ( | const ClassLabelType & | classLabel | ) | const |
Gets the Subsample that includes only the instances that belongs to the classLabel
AbsoluteFrequencyType itk::Statistics::MembershipSample< TSample >::GetFrequency | ( | const InstanceIdentifier & | id | ) | const |
returns the frequency of the instance which is identified by the 'id'
|
private |
Gets the internal continuous class label from the class labels that are used for AddInstance method.
MeasurementType itk::Statistics::MembershipSample< TSample >::GetMeasurement | ( | const InstanceIdentifier & | id, |
const unsigned int & | dimension | ||
) |
returns the measurement element which is the 'n'-th element in the 'd' dimension of the measurement vector
const MeasurementVectorType& itk::Statistics::MembershipSample< TSample >::GetMeasurementVector | ( | const InstanceIdentifier & | id | ) | const |
retunrs the measurement of the instance which is identified by the 'id'
|
virtual |
Standard macros
Reimplemented from itk::DataObject.
|
virtual |
Gets the number of classes (class labels)
|
virtual |
Set/Get the actual sample data
TotalAbsoluteFrequencyType itk::Statistics::MembershipSample< TSample >::GetTotalFrequency | ( | ) | const |
returns the total frequency for the 'd' dimension
|
virtual |
Method to graft another sample
Reimplemented from itk::DataObject.
|
static |
Standard macros
|
private |
|
protectedvirtual |
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::DataObject.
void itk::Statistics::MembershipSample< TSample >::SetNumberOfClasses | ( | unsigned int | numberOfClasses | ) |
Sets the number of classes (class labels)
|
virtual |
Set/Get the actual sample data
|
private |
Definition at line 304 of file itkMembershipSample.h.
|
private |
Definition at line 305 of file itkMembershipSample.h.
|
private |
Definition at line 307 of file itkMembershipSample.h.
|
private |
Definition at line 306 of file itkMembershipSample.h.
|
private |
Definition at line 303 of file itkMembershipSample.h.