资源简介
基于分水岭算法的重叠细胞分割
%% 1.Make a binary image containing two overlapping circular objects.
%% 2.Compute the distance transform of the complement of the binary image.
%% 3.Complement the distance transform, and force pixels that don't belong
%% 4.Compute the watershed transform and display the resulting label matrix as an RGB images.
代码片段和文件信息
%% 1.Make a binary image containing two overlapping circular objects.
center1 = -10;
center2 = -center1;
dist = sqrt(2*(2*center1)^2);
radius = dist/2 * 1.4;
lims = [floor(center1-1.2*radius) ceil(center2+1.2*radius)];
[xy] = meshgrid(lims(1):lims(2));
bw1 = sqrt((x-center1).^2 + (y-center1).^2) <= radius;
bw2 = sqrt((x-center2).^2 + (y-center2).^2) <= radius;
bw = bw1 | bw2;
figure imshow(bw‘InitialMagnification‘‘fit‘) title(‘bw‘)
%% 2.Compute the distance transform of the complem
- 上一篇:DMC动态矩阵控制MATLAB程序(简易
- 下一篇:混沌系统驱动响应同步代码
相关资源
- matlab分水岭
- 分水岭分割算法matlab实现
- MATLAB 分水岭算法
- 基于标记的分水岭分割实现
- 图像分割-分水岭算法MATLAB代码
- 图像分割分水岭算法MATLAB源代码
- matlab写的分水岭算法对粘连东西进行
- matlab基于分水岭算法处理图像分割的
- 分水岭算法分割苹果(matlab代码实现
- 基于matlab的分水岭算法分割黏连细胞
- 图像分割分水岭算法
- Matlab分水岭法分割图像代码
- 标记分水岭分割算法的matlab实现
- 基于标记的分水岭算法matlab程序
- matlab实现的区域增长和分水岭算法
- cellcount细胞分割 分水岭算法
- ImageSegmentation 多尺度分水岭变换分割
- Watershed-algorithm 基于距离变换的分水岭
- 基于分水岭和区域合并的图像分割算
- 分水岭分割方法提取目标轮廓
- matlab实现分水岭算法代码
- matlab 分水岭分割算法
评论
共有 条评论