An Experimental Comparison of Min-Cut/Max-Flow Algorithms for Energy Minimization in Vision 2001
除去图像中所有像素,额外生成两个终端结点s和t,分别代表前景和背景,然后以图像中每个像素作为一个node生成graph,其中每相邻的两个结点之间都有一条边相连,称为n-links,此外每个node与两个终端结点分别都有一条边相连,称为t-links;每个连接的边都被赋予一个权重,结点和边构成了一个无向图;一个带有两个终端节点的graph的s/t 割是把结点最终分成两个不相交的子集S、T,源点s属于S,汇点t属于T;
graph在生成的graph中,每个edge的权重相当于是每条路径的容量,在沿着不饱和路径寻找节点的过程中,只有active nodes可以向外扩展找到新的结点。具体算法流程如下: