CRF Model
The Binary LN Model described in the bachelor thesis "Maximum Likelihood Learning And Inference In Conditional Random Fields" by Iulian Vlad Serban, University of Copenhagen, 2012.
|
00001 00019 #ifndef CRFMODEL_GRAPHCUT_H 00020 #define CRFMODEL_GRAPHCUT_H 00021 00022 #include <crfmodel.h> 00023 00024 #include <map> 00025 #include <random> 00026 00027 #include <QDebug> 00028 00029 #include <math.h> 00030 #include "include/graph.h" 00031 00032 /*#include <boost/config.hpp> 00033 #include <iostream> 00034 #include <string> 00035 #include <boost/graph/push_relabel_max_flow.hpp> 00036 #include <boost/graph/edmonds_karp_max_flow.hpp> 00037 #include <boost/graph/adjacency_list.hpp> 00038 #include <boost/graph/connected_components.hpp> 00039 */ 00040 00041 namespace CRF 00042 { 00043 class CRFModel_GraphCut : public CRFModel 00044 { 00045 public: 00049 CRFModel_GraphCut(); 00050 00057 CRFModel_GraphCut(int imgWidth, int imgHeight, int MAPSTEPS); 00058 00064 int_int_vector EstimateMAP(const double_double_vector Input); 00065 00066 00067 private: 00068 00069 }; 00070 } 00071 #endif // CRFMODEL_GRAPHCUT_H