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

📄 test1.m

📁 利用matlab实现彩色图像的分割。算法主要是利用聚类算法。
💻 M
字号:
im = imread('images/berries.jpg','jpg');im = double(im) ./ 256;load clusters % clusters was created using the previous commandM = calculatePXTheta(im,clusters);figure(1)colormap gray;for i=1:2:10  subplot(5,2,i)  imagesc(clusters(:,:,(i+1)/2));  title(sprintf('Cluster %d',(i+1)/2));endfor i=2:2:10  subplot(5,2,i)  imagesc(M(:,:,i/2)); colorbar  title(sprintf('Probability of being in cluster %d',i/2));end  

⌨️ 快捷键说明

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