29 DllExport
virtual void buildGraph(Size graphSize) = 0;
42 DllExport
virtual void setGraph(
const Mat& pots) = 0;
57 DllExport
virtual void addDefaultEdgesModel(
const Mat &featureVectors,
float val,
float weight = 1.0f) = 0;
65 DllExport
virtual void addDefaultEdgesModel(
const vec_mat_t &featureVectors,
float val,
float weight = 1.0f) = 0;
70 DllExport
virtual Size
getSize()
const = 0;
virtual void buildGraph(Size graphSize)=0
Builds a 2D graph of size corresponding to the image resolution.
virtual void addDefaultEdgesModel(float val, float weight=1.0f)=0
Adds default data-independet edge model.
const CGraphExt & operator=(const CGraphExt &)=delete
virtual void setGraph(const Mat &pots)=0
Fills an existing 2D graph with potentials or builds a new 2D graph of size corresponding to pots...
virtual Size getSize() const =0
Returns the size of the graph.
General graph extension abstract class for 2D image classifaction.
virtual ~CGraphExt(void)=default