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

📄 isum.m

📁 基于matlab写的对人体的分割程序
💻 M
字号:
function acc = isum(x,idx,nbins)% function acc = isum(x,idx,nbins)%% Indexed sum reduction, where acc(i) contains the sum of% x(find(idx==i)).%% The mex version is 300x faster in R12, and 3x faster in R13.  As far% as I can tell, there is no way to do this efficiently in matlab R12.%% David R. Martin <dmartin@eecs.berkeley.edu>% March 2003acc = zeros(nbins,1);for i = 1:numel(x),  if idx(i)<1, continue; end  if idx(i)>nbins, continue; end  acc(idx(i)) = acc(idx(i)) + x(i);end

⌨️ 快捷键说明

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