21 #ifndef otbDecisionTree_h
22 #define otbDecisionTree_h
25 #include "itkObjectFactory.h"
26 #include "itkDataObject.h"
60 template <
class AttributeValueType,
class LabelType>
86 typedef typename std::pair<AttributeValueType, DecisionTreeTestType>
KeyType;
91 itkSetMacro(Attribute,
unsigned int);
92 itkGetMacro(Attribute,
unsigned int);
99 void AddBranch(AttributeValueType attr,
Pointer branch);
106 void AddBranch(AttributeValueType attr, LabelType label);
120 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
142 #ifndef OTB_MANUAL_INSTANTIATION
itk::SmartPointer< Self > Pointer
std::map< KeyType, Pointer > TreeMapType
void operator=(const Self &)=delete
std::pair< AttributeValueType, DecisionTreeTestType > KeyType
itk::DataObject Superclass
DecisionTree(const Self &)=delete
std::vector< AttributeValueType > ExampleType
std::map< KeyType, LabelType > LabelMapType
itk::SmartPointer< const Self > ConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.