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

📄 showclustersmodelssizehistogram.m

📁 J-linkage 算法
💻 M
字号:
%-----------------------------------------------------------
% Plot Clusters sizes in a histogram form
%
% Usage:
%
% showClustersModelsSizeHistogram(T, totdbin)
%
% Arguments:
%     T                - Clustered points Labels
%   
% Authors: R.Toldo A.Fusiello, department of computer science - University of Verona.
% Reference Paper: R. Toldo, A. Fusiello. Robust Multiple Structures Estimation with J-linkage. Proceeding of the European Conference on Computer Vision, 2008.
%-----------------------------------------------------------
function showClustersModelsSizeHistogram(T)
    nTPts = zeros(max(T),1);
    nT = zeros(size(T));
    for i=1:max(T)
        nTPts(i) = length(find(T == i));    
    end

    [nTPts I] = sort(nTPts,'descend');
    for i=1:max(T)
        nT(find(T == I(i))) = i;
    end
    hist(nT,max(nT))

end

⌨️ 快捷键说明

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