⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adjascence.asv

📁 Fusion algorithm example to split a picture into different areas depending on their average color
💻 ASV
字号:
function matAdj=adjascence(labels)

    taille=size(labels(:,:));
    matAdj = zeros(max(max(labels)),max(max(labels)));
    for i=1:taille(1)-1,
        for j=1:taille(2)-1,
            if(labels(i,j) ~= labels(i,j+1))
                matAdj(labels(i,j),labels(i,j+1))=1;
            end
            if(labels(i,j) ~= labels(i+1,j))
                matadj(labels(i,j),labels(i+1,j)=1;
            end
        end
    end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -