X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgraphcut.h;h=39b96c04f7c91a19af075d3b371a9a29154450e3;hb=062138c37383ec48082037f0610b7c8da41f6d0d;hp=b08577076b5beeb9be463dd8f354034d779e7bb7;hpb=c4e8d97d137d32868c97280106819a1f868e361c;p=swftools.git diff --git a/lib/graphcut.h b/lib/graphcut.h index b085770..39b96c0 100644 --- a/lib/graphcut.h +++ b/lib/graphcut.h @@ -38,6 +38,7 @@ struct _halfedge { struct _node { halfedge_t*edges; + int tmp; int nr; }; @@ -49,6 +50,7 @@ struct _graph { graph_t* graph_new(int num_nodes); halfedge_t*graph_add_edge(node_t*from, node_t*to, weight_t forward_weight, weight_t backward_weight); weight_t graph_maxflow(graph_t*graph, node_t*pos1, node_t*pos2); +int graph_find_components(graph_t*g); void graph_delete(graph_t*); #endif