20140730 尝试改为多区域分割

[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);

你可能感兴趣的:(实验记录)