18 #ifndef itkClassifierBase_h
19 #define itkClassifierBase_h
85 template<
typename TDataContainer >
99 itkSetMacro(NumberOfClasses,
unsigned int);
102 itkGetConstReferenceMacro(NumberOfClasses,
unsigned int);
121 m_DecisionRule = ptrToDecisionRule;
127 return m_DecisionRule.GetPointer();
136 return m_MembershipFunctions[index].GetPointer();
142 return static_cast< unsigned int >( m_MembershipFunctions.size() );
146 unsigned int AddMembershipFunction(MembershipFunctionType *
function);
154 void PrintSelf(std::ostream & os,
Indent indent)
const override;
158 void GenerateData()
override = 0;
172 #ifndef ITK_MANUAL_INSTANTIATION
173 #include "itkClassifierBase.hxx"
typename MembershipFunctionType::Pointer MembershipFunctionPointer
MembershipFunctionPointerVector m_MembershipFunctions
Light weight base class for most itk classes.
unsigned int GetNumberOfMembershipFunctions()
unsigned int m_NumberOfClasses
DecisionRuleType * GetDecisionRule()
std::vector< MembershipFunctionPointer > MembershipFunctionPointerVector
Base class for classifier objects.
Base class for decision rules that return a class label based on a set of discriminant scores...
MembershipFunctionBase defines common interfaces for membership functions.
typename TInputImage::ValueType MeasurementVectorType
const MembershipFunctionType * GetMembershipFunction(unsigned int index) const
void SetDecisionRule(DecisionRuleType *ptrToDecisionRule)
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
Base class for most ITK classes.
DecisionRuleType::Pointer m_DecisionRule