Direct Graphical Models  v.1.7.0
PriorNode.h
1 // Node 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 {
9 // ================================ Node Prior Class ================================
14  class CPriorNode : public CPrior
15  {
16  public:
21  DllExport CPriorNode(byte nStates) : CBaseRandomModel(nStates), CPrior(nStates, RM_UNARY) {}
22  DllExport ~CPriorNode(void) {}
23 
28  DllExport void addNodeGroundTruth(const Mat &gt);
33  DllExport void addNodeGroundTruth(byte gt);
34 
35 
36  protected:
42  DllExport Mat calculatePrior(void) const;
43  };
44 }
Unary random model: no iteraction between nodes.
Mat calculatePrior(void) const
Calculates the prior probabilies.
Definition: PriorNode.cpp:18
void addNodeGroundTruth(const Mat &gt)
Adds ground truth values to the co-occurance histogram vector.
Definition: PriorNode.cpp:7
Base abstract class for prior probability estimation.
Definition: Prior.h:15
CPriorNode(byte nStates)
Constructor.
Definition: PriorNode.h:21
Base abstract class for random model training.
Node prior probability estimation class
Definition: PriorNode.h:14