Direct Graphical Models  v.1.7.0
PriorEdge.h
1 // Edge prior probability estimation class
2 // Written by Sergey G. Kosov in 2015 for Project X
3 #pragma once
4 
5 #include "Prior.h"
6 
7 namespace DirectGraphicalModels
8 {
31  };
32 
33  // ================================ Edge Prior Class ================================
38  class CPriorEdge : public CPrior
39  {
40  public:
46  DllExport CPriorEdge(byte nStates, ePotNormApproach normApp = eP_APP_NORM_SYMMETRIC) : CBaseRandomModel(nStates), CPrior(nStates, RM_PAIRWISE), m_normApp(normApp) {}
47  DllExport ~CPriorEdge(void) {}
48 
55  DllExport void addEdgeGroundTruth(byte gt1, byte gt2);
56 
57 
58 
59  protected:
66  DllExport Mat calculatePrior(void) const;
67 
68 
69  private:
71  };
72 }
ePotNormApproach m_normApp
Flag specifying the co-occurance histogram matrix normalization approach (Ref. ePotNormApproach) ...
Definition: PriorEdge.h:70
Base abstract class for prior probability estimation.
Definition: Prior.h:15
Mat calculatePrior(void) const
Returns the prior edge probability.
Definition: PriorEdge.cpp:13
void addEdgeGroundTruth(byte gt1, byte gt2)
Adds the groud-truth value to the co-occurance histogram matrix.
Definition: PriorEdge.cpp:6
Base abstract class for random model training.
CPriorEdge(byte nStates, ePotNormApproach normApp=eP_APP_NORM_SYMMETRIC)
Constructor.
Definition: PriorEdge.h:46
Edge prior probability estimation class.
Definition: PriorEdge.h:38
Pairwise random model: maximum two nodes in the cliques.
ePotNormApproach
Normalization approach flag.
Definition: PriorEdge.h:27