[LABELS ENERGY ENERGYAFTER] = GCMEX(CLASS, UNARY, PAIRWISE, LABELCOST,EXPANSION)
Parameters:
CLASS: A 1xN vector which specifies the initial labels of each of the N nodes in the graph
UNARY: A CxN matrix specifying the potentials (data term) for each of the C possible classes at each of the N nodes.
PAIRWISE: An NxN sparse matrix specifying the graph structure and cost for each link between nodes in the graph.
LABELCOST: A CxC matrix specifying the fixed label cost for the labels of each adjacent node in the graph.
EXPANSION: A 0-1 flag which determines if the swap or expansion method is used to solve the minimization. 0 == swap, 1 == expansion. If ommitted, defaults to swap.
superpixel 分割中:
[labels, ~, ~] = GCMex(zeros(sp_amount,1), single(Dc), Ss, single([0, 1; 1, 0]), 0);
sp_mount = 85;
Dc = (2,85);
Ss = (85, 85);
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。