IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RandomForestTreeNode.h
1 // RandomForestTreeNode.h:
3 // -----------------------
4 //
15 
16 #ifndef __IPSDKIPLATTRIBUTES_RANDOMFORESTTREENODE_H__
17 #define __IPSDKIPLATTRIBUTES_RANDOMFORESTTREENODE_H__
18 
23 
24 namespace ipsdk {
25 namespace imaproc {
26 namespace attr {
27 
33 
34 IPSDK_DECLARE_NODE_DATA(IPSDKIPLAttributes, RandomForestTreeNode,
35  ((LEAF)(Idx)(ipsdk::ipInt32))
36  ((ENUMLEAF)(Type)(eRandomForestTreeNodeType)(eRandomForestTreeNodeType::eRFTNT_Leaf))
37  ((LEAF)(FeatureIdx)(ipsdk::ipInt16)(-1))
38  ((LEAF)(Threshold)(ipsdk::ipReal64)(NumericLimits<ipsdk::ipReal64>::max()))
39  ((LEAF)(NodeIdxTrue)(ipsdk::ipInt32)(-1))
40  ((LEAF)(NodeIdxFalse)(ipsdk::ipInt32)(-1))
41  ((LEAF)(Value)(ipsdk::ipInt32)(-1)))
42 };
43 
46 typedef boost::shared_ptr<ipsdk::imaproc::attr::RandomForestTreeNode> RandomForestTreeNodePtr;
47 
50 typedef boost::shared_ptr<const ipsdk::imaproc::attr::RandomForestTreeNode> RandomForestTreeNodeConstPtr;
51 
54 typedef std::vector<RandomForestTreeNodePtr> RandomForestTreeNodeColl;
55 
58 typedef std::vector<RandomForestTreeNodeConstPtr> RandomForestTreeNodeConstColl;
59 
64  const eRandomForestTreeNodeType type,
65  const ipsdk::ipInt16 featureIdx,
66  const ipsdk::ipReal64 threshold,
67  const ipsdk::ipInt32 nodeIdxTrue,
68  const ipsdk::ipInt32 nodeIdxFalse,
69  const ipsdk::ipInt32 value);
70 
71 
74 
75 } // end of namespace attr
76 } // end of namespace imaproc
77 } // end of namespace ipsdk
78 
79 #endif // __IPSDKIPLATTRIBUTES_RANDOMFORESTTREENODE_H__
#define IPSDK_DECLARE_NODE_DATA(libraryName, className, childSeq)
boost::shared_ptr< const ipsdk::imaproc::attr::RandomForestTreeNode > RandomForestTreeNodeConstPtr
shared pointer to const ipsdk::imaproc::RandomForestTreeNode
Definition: RandomForestTreeNode.h:228
double ipReal64
int32_t ipInt32
int16_t ipInt16
std::vector< RandomForestTreeNodeConstPtr > RandomForestTreeNodeConstColl
Collection of ipsdk::imaproc::RandomForestTreeNodeConstPtr.
Definition: RandomForestTreeNode.h:236
std::vector< RandomForestTreeNodePtr > RandomForestTreeNodeColl
Collection of ipsdk::imaproc::RandomForestTreeNodePtr.
Definition: RandomForestTreeNode.h:232
Definition of import/export macro for library.
IPSDKIPLATTRIBUTES_API ipsdk::imaproc::attr::RandomForestTreeNodePtr createRandomForestTreeNode(const ipsdk::ipInt32 idx, const eRandomForestTreeNodeType type, const ipsdk::ipInt16 featureIdx, const ipsdk::ipReal64 threshold, const ipsdk::ipInt32 nodeIdxTrue, const ipsdk::ipInt32 nodeIdxFalse, const ipsdk::ipInt32 value)
function allowing to create a random forest tree node from its parameters
Predefined types for random forest classification.
#define IPSDKIPLATTRIBUTES_API
Import/Export macro for library IPSDKIPLAttributes.
Definition: IPSDKIPLAttributesExports.h:25
boost::shared_ptr< ipsdk::imaproc::attr::RandomForestTreeNode > RandomForestTreeNodePtr
shared pointer to ipsdk::imaproc::RandomForestTreeNode
Definition: RandomForestTreeNode.h:224