18 #ifndef itkClassifierBase_h
19 #define itkClassifierBase_h
85 template<
typename TDataContainer >
97 itkSetMacro(NumberOfClasses,
unsigned int);
100 itkGetConstReferenceMacro(NumberOfClasses,
unsigned int);
109 typedef std::vector< MembershipFunctionPointer >
120 m_DecisionRule = ptrToDecisionRule;
126 return m_DecisionRule.GetPointer();
135 return m_MembershipFunctions[index].GetPointer();
141 return static_cast< unsigned int >( m_MembershipFunctions.size() );
145 unsigned int AddMembershipFunction(MembershipFunctionType *
function);
153 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
157 virtual
void GenerateData() ITK_OVERRIDE = 0;
163 unsigned int m_NumberOfClasses;
173 #ifndef ITK_MANUAL_INSTANTIATION
174 #include "itkClassifierBase.hxx"
DecisionRuleType * GetDecisionRule(void)
MembershipFunctionType::Pointer MembershipFunctionPointer
unsigned int GetNumberOfMembershipFunctions()
TDataContainer::ValueType MeasurementVectorType
Base class for classifier objects.
Statistics::MembershipFunctionBase< MeasurementVectorType > MembershipFunctionType
Base class for decision rules that return a class label based on a set of discriminant scores...
MembershipFunctionBase defines common interfaces for membership functions.
const MembershipFunctionType * GetMembershipFunction(unsigned int index) const
void SetDecisionRule(DecisionRuleType *ptrToDecisionRule)
std::vector< MembershipFunctionPointer > MembershipFunctionPointerVector
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Statistics::DecisionRule DecisionRuleType
Control indentation during Print() invocation.
LightProcessObject Superclass