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);
153 *
this = sample->Begin();
183 ++m_InstanceIdentifier;
194 return m_Sample->GetMeasurementVector(m_InstanceIdentifier);
199 return m_InstanceIdentifier;
202 unsigned int GetClassLabel()
const
204 return m_MembershipSample->GetClassLabel(m_InstanceIdentifier);
214 m_Sample( memberSample->GetSample() ), m_MembershipSample(memberSample), m_InstanceIdentifier(iid)
237 this->ConstIterator::operator=(iter);
271 Iterator iter(
this, m_Sample->Size() );
293 void PrintSelf(std::ostream & os,
Indent indent)
const;
297 void operator=(
const Self &);
301 int GetInternalClassLabel(
const ClassLabelType classLabel)
const;
312 #ifndef ITK_MANUAL_INSTANTIATION
313 #include "itkMembershipSample.hxx"