资源简介
矩阵权Loop细分的mu的一般计算方法,通过计算与顶点相连的点的个数计算得到。
代码片段和文件信息
function [ mu ] = compute_mu( vertices facesN)
%COMPUTE_MU 此处显示有关此函数的摘要
global edgeVertice_mu;
nVertices = size(vertices2);
nFaces = size(faces2);
edgeVertice_mu = zeros(nVertices);
mu=zeros(1nVertices);
for i=1:nFaces
[vaIndex vbIndex vcIndex] = deal(faces(1i) faces(2i) faces(3i));
addEdgeVertice(vaIndex vbIndex);
addEdgeVertice(vbIndex vcIndex);
addEdgeVertice(vaIndex vcIndex);
end;
% ------------------------------------------------------------------------ %
% adjacent vertices (using edgeVertice)
adjVertice{nVertices} = [];
for v=1:nVertices
for vTmp=1:nVertices
if (vvTmp && edgeVertice_mu(vTmpv)~=0)
adjVertice{v}(end+1) = vTmp;
end;
end;
- 上一篇:Meanshift图像分割matlab
- 下一篇:用Matlab绘制模型
评论
共有 条评论