18 #ifndef __itkMembershipSample_h
19 #define __itkMembershipSample_h
21 #include "itksys/hash_map.hxx"
55 template<
typename TSample >
105 itkGetConstMacro(NumberOfClasses,
unsigned int);
132 const unsigned int & dimension);
153 *
this = sample->Begin();
293 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
312 #ifndef ITK_MANUAL_INSTANTIATION
313 #include "itkMembershipSample.hxx"
ConstIterator & operator++()
InstanceIdentifier GetInstanceIdentifier() const
SampleType::AbsoluteFrequencyType AbsoluteFrequencyType
virtual void Graft(const DataObject *thatObject) ITK_OVERRIDE
SampleType::MeasurementType MeasurementType
unsigned int GetClassLabel(const InstanceIdentifier &id) const
std::vector< ClassSamplePointer > m_ClassSamples
const MeasurementVectorType & GetMeasurementVector(const InstanceIdentifier &id) const
InstanceIdentifier m_InstanceIdentifier
void SetNumberOfClasses(unsigned int numberOfClasses)
SampleType::MeasurementVectorType MeasurementVectorType
Subsample< SampleType > ClassSampleType
ConstIterator(const Self *sample)
unsigned int m_NumberOfClasses
IdentifierType ClassLabelType
itksys::hash_map< InstanceIdentifier, ClassLabelType > ClassLabelHolderType
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
Container for storing the instance-identifiers of other sample with their associated class labels...
virtual const SampleType * GetSample() const
UniqueClassLabelsType m_UniqueClassLabels
MeasurementType GetMeasurement(const InstanceIdentifier &id, const unsigned int &dimension)
SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
Iterator & operator=(const Iterator &iter)
SizeValueType IdentifierType
const MembershipSample * m_MembershipSample
ConstIterator & operator=(const ConstIterator &iter)
int GetInternalClassLabel(const ClassLabelType classLabel) const
SmartPointer< const Self > ConstPointer
ConstIterator(const ConstIterator &iter)
Iterator(Self *memberSample, InstanceIdentifier iid)
AbsoluteFrequencyType GetFrequency() const
void operator=(const Self &)
ClassLabelHolderType m_ClassLabelHolder
unsigned int GetClassLabel() const
SampleConstPointer m_Sample
bool operator==(const ConstIterator &it)
ConstIterator(const Self *memberSample, InstanceIdentifier iid)
TotalAbsoluteFrequencyType GetTotalFrequency() const
std::vector< ClassLabelType > UniqueClassLabelsType
virtual ~MembershipSample()
Iterator(const Iterator &iter)
SampleType::ConstPointer SampleConstPointer
A collection of measurements for statistical analysis.
Control indentation during Print() invocation.
ClassSampleType::Pointer ClassSamplePointer
const ClassLabelHolderType GetClassLabelHolder() const
bool operator!=(const ConstIterator &it)
SmartPointer< Self > Pointer
const MeasurementVectorType & GetMeasurementVector() const
ConstIterator End() const
SampleType::InstanceIdentifier InstanceIdentifier
ConstIterator Begin() const
const ClassSampleType * GetClassSample(const ClassLabelType &classLabel) const
Base class for all data objects in ITK.
void AddInstance(const ClassLabelType &classLabel, const InstanceIdentifier &id)
AbsoluteFrequencyType GetFrequency(const InstanceIdentifier &id) const
ClassSampleType::ConstPointer ClassSampleConstPointer