ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
Classes | Public Types | Public Member Functions | List of all members
GraphCutAL::Graph Class Reference

#include <graph.h>

Public Types

enum  termtype { SOURCE = 0 , SINK = 1 }
 
typedef float captype
 
typedef float flowtype
 
typedef void * node_id
 

Public Member Functions

 Graph (void(*err_function)(char *)=NULL)
 
 ~Graph ()
 
node_id add_node ()
 
void add_edge (node_id from, node_id to, captype cap, captype rev_cap)
 
void set_tweights (node_id i, captype cap_source, captype cap_sink)
 
void add_tweights (node_id i, captype cap_source, captype cap_sink)
 
termtype what_segment (node_id i)
 
flowtype maxflow ()
 
captype nweight_sum (node_id i)
 

Member Typedef Documentation

◆ captype

◆ flowtype

◆ node_id

Member Enumeration Documentation

◆ termtype

Enumerator
SOURCE 
SINK 

Constructor & Destructor Documentation

◆ Graph()

GraphCutAL::Graph::Graph ( void(*)(char *)  err_function = NULL)

◆ ~Graph()

GraphCutAL::Graph::~Graph ( )

Member Function Documentation

◆ add_edge()

void GraphCutAL::Graph::add_edge ( node_id  from,
node_id  to,
captype  cap,
captype  rev_cap 
)

◆ add_node()

Graph::node_id GraphCutAL::Graph::add_node ( )

◆ add_tweights()

void GraphCutAL::Graph::add_tweights ( node_id  i,
captype  cap_source,
captype  cap_sink 
)

◆ maxflow()

Graph::flowtype GraphCutAL::Graph::maxflow ( )

◆ nweight_sum()

Graph::captype GraphCutAL::Graph::nweight_sum ( node_id  i)

◆ set_tweights()

void GraphCutAL::Graph::set_tweights ( node_id  i,
captype  cap_source,
captype  cap_sink 
)

◆ what_segment()

Graph::termtype GraphCutAL::Graph::what_segment ( node_id  i)

The documentation for this class was generated from the following files: