]> AND Private Git Repository - these_gilles.git/blob - THESE/codes/graphe/Ncut_9/computeW.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
20 déc
[these_gilles.git] / THESE / codes / graphe / Ncut_9 / computeW.m
1 function W = computeW(imageX,dataW,emag,ephase)\r
2 % W = computeW(imageX,dataW,emag,ephase)\r
3 % Timothee Cour, Stella Yu, Jianbo Shi, 2004.\r
4 [p,q] = size(imageX);\r
5 \r
6 [w_i,w_j] = cimgnbmap([p,q],dataW.sampleRadius,dataW.sample_rate);\r
7 \r
8 W = affinityic(emag,ephase,w_i,w_j,max(emag(:)) * dataW.edgeVariance);\r
9 W = W/max(W(:));\r