matlab三维网格化图像源码


这是用matlab编写的一款用于实现点云的网格化连接的源码,可以实现物体三维框架的搭建,效果很不错。
资源截图
代码片段和文件信息
%APCLUSTER Affinity Propagation Clustering (Frey/Dueck Science 2007)
% [idxnetsimdpsimexpref]=APCLUSTER(sp) clusters data using a set 
% of real-valued pairwise data point similarities as input. Clusters 
% are each represented by a cluster center data point (the “exemplar“). 
% The method is iterative and searches for clusters so as to maximize 
% an objective function called net similarity.

% For N data points there are potentially N^2-N pairwise similarities; 
% this can be input as an N-by-N matrix ‘s‘ where s(ik) is the 
% similarity of point i to point k (s(ik) needn?t equal s(ki)).  In 
% fact only a smaller number of relevant similarities are needed; if 
% only M similarity values are known (M < N^2-N) they can be input as 
% an M-by-3 matrix with each row being an (ijs(ij)) triple.

% APCLUSTER automatically determines the number of clusters based on 
% the input preference ‘p‘ a real-valued N-vector. p(i) indicates the 
% preference that data point i be chosen as an exemplar. Often a good 
% choice is to set all preferences to median(s); the number of clusters 
% identified can be adjusted by changing this value accordingly. If ‘p‘ 
% is a scalar APCLUSTER assumes all preferences are that shared value.

% The clustering solution is returned in idx. idx(j) is the index of 
% the exemplar for data point j; idx(j)==j indicates data point j 
% is itself an exemplar. The sum of the similarities of the data points to 
% their exemplars is returned as dpsim the sum of the preferences of 
% the identified exemplars is returned in expref and the net similarity 
% objective function returned is their sum i.e. netsim=dpsim+expref.

%  [ ... ]=apcluster(sp‘NAME‘VALUE...) allows you to specify 
%    optional parameter name/value pairs as follows:

%   ‘maxits‘     maximum number of iterations (default: 1000)
%   ‘convits‘    if the estimated exemplars stay fixed for convits 
%          iterations APCLUSTER terminates early (default: 100)
%   ‘dampfact‘   update equation damping level in [0.5 1).  Higher 
%        values correspond to heavy damping which may be needed 
%        if oscillations occur. (default: 0.9)
%   ‘plot‘       (no value needed) Plots netsim after each iteration
%   ‘details‘    (no value needed) Outputs iteration-by-iteration 
%      details (greater memory requirements)
%   ‘nonoise‘    (no value needed) APCLUSTER adds a small amount of 
%      noise to ‘s‘ to prevent degenerate cases; this disables that.

% Copyright (c) B.J. Frey & D. Dueck (2006). This software may be 
% freely used and distributed for non-commercial purposes.
%          (RUN APCLUSTER WITHOUT ARGUMENTS FOR DEMO CODE)
function [idxnetsimdpsimexpref]=apcluster(spvarargin);
if nargin==0 % display demo
fprintf(‘Affinity Propagation (APCLUSTER) sample/demo code

‘);
fprintf(‘N=100; x=rand(N2); % Create N 2-D data points
‘);
fprintf(‘M=N*N-N; s=zeros(M3); % Ma

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     128651  2010-09-04 16:57  qishi200001.fig

     文件      11193  2009-02-12 10:27  qishi20000apcluster.m

     文件      10103  2007-04-20 19:13  qishi20000apcluster_imp.m

     文件      77824  2007-09-10 10:03  qishi20000apcluster_win32apcluster.exe

     文件       3380  2007-08-13 10:56  qishi20000apcluster_win32apcluster.h

     文件      10427  2007-08-10 17:25  qishi20000apcluster_win32apclusterdemo_win32.c

     文件     114688  2007-12-05 19:00  qishi20000apcluster_win32apclusterwin.dll

     文件        275  2007-08-28 18:07  qishi20000apcluster_win32Preferences.txt

     文件         85  2007-08-28 18:07  qishi20000apcluster_win32ReadMe.txt

     文件      12390  2007-08-28 18:07  qishi20000apcluster_win32Similarities.txt

     文件    1674528  2008-09-04 17:23  qishi20000unny1.txt

     文件      87955  2008-09-05 09:56  qishi20000unny3.txt

     文件        181  2010-12-24 17:52  qishi20000unny33.mat

     文件      70354  2010-09-12 14:47  qishi20000unny6k.txt

     文件       1988  2010-09-04 16:49  qishi20000main.asv

     文件      76483  2010-12-23 16:44  qishi20000main.exe

     文件       2017  2010-12-05 21:31  qishi20000main.m

     文件      40694  2010-12-23 16:43  qishi20000main.prj

     文件       2878  2010-12-23 16:43  qishi20000main_delay_load.c

     文件       3570  2010-12-23 16:43  qishi20000main_main.c

     文件       6290  2010-12-23 16:43  qishi20000main_mcc_component_data.c

     文件     426893  2010-12-23 16:43  qishi20000mccExcludedFiles.log

     文件      12438  2009-02-09 17:48  qishi20000MyCrust.m

     文件      25787  2010-11-30 13:08  qishi20000POINTS.mat

     文件       2867  2010-12-23 16:43  qishi20000
eadme.txt

     文件     217198  2010-10-05 18:09  qishi20000simple.txt

     文件        970  2010-09-03 21:34  qishi20000TestMyCrust.m

     文件      10491  2010-09-03 21:34  qishi20000untitled.fig

     文件       3986  2010-09-03 21:36  qishi20000untitledf.fig

     目录          0  2010-09-04 15:38  qishi20000apcluster_win32

............此处省略4个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)