脚本宝典收集整理的这篇文章主要介绍了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);
@H_512_49@脚本宝典总结
以上是脚本宝典为你收集整理的20140730 尝试改为多区域分割全部内容,希望文章能够帮你解决20140730 尝试改为多区域分割所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。