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

📄 distances.m

📁 利用matlab实现彩色图像的分割。算法主要是利用聚类算法。
💻 M
字号:
function d = distances(v, m)%  DISTANCES Squared euclidean distances (works on vectors of any%  dimension)%% D is a vector containing the squared Euclidean distance of V from% each row of M.%% using repmat, takes 0.0013s%      v = v(:)';     % make into row vec    % get the current "pixel" ready for comparison to all groups  vm = repmat(v, length(m(:,1)), 1);       d = sum((vm - m).^2,2);  % sum of sq differences of each dimension         

⌨️ 快捷键说明

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