18 #ifndef __itkMembershipSample_h
19 #define __itkMembershipSample_h
21 #include "itksys/hash_map.hxx"
55 template<
class TSample >
102 void SetNumberOfClasses(
unsigned int numberOfClasses);
105 itkGetConstMacro(NumberOfClasses,
unsigned int);
132 const unsigned int & dimension);
141 virtual void Graft(
const DataObject *thatObject);
152 *
this = sample->Begin();
182 ++m_InstanceIdentifier;
193 return m_Sample->GetMeasurementVector(m_InstanceIdentifier);
198 return m_InstanceIdentifier;
201 unsigned int GetClassLabel()
const
203 return m_MembershipSample->GetClassLabel(m_InstanceIdentifier);
213 m_Sample( memberSample->GetSample() ), m_MembershipSample(memberSample), m_InstanceIdentifier(iid)
235 this->ConstIterator::operator=(iter);
268 Iterator iter(
this, m_Sample->Size() );
290 void PrintSelf(std::ostream & os,
Indent indent)
const;
294 void operator=(
const Self &);
298 int GetInternalClassLabel(
const ClassLabelType classLabel)
const;
309 #ifndef ITK_MANUAL_INSTANTIATION
310 #include "itkMembershipSample.hxx"