MorphologicalComponents[image]
给出一个数组,用整数指针替代 image 中的每个像素,表示像素所在的连接前景图像的分量.
MorphologicalComponents[image,t]
将大于 t 的值视为前景.
MorphologicalComponents[video,…]
计算 video 各帧中连在一起的分量.


MorphologicalComponents

MorphologicalComponents[image]
给出一个数组,用整数指针替代 image 中的每个像素,表示像素所在的连接前景图像的分量.
MorphologicalComponents[image,t]
将大于 t 的值视为前景.
MorphologicalComponents[video,…]
计算 video 各帧中连在一起的分量.
更多信息和选项

- MorphologicalComponents,也称为图像连通分量,是一种根据像素连通性分割图像前景的二值图像分割技术.
- MorphologicalComponents 把连续整数赋给不同的连接分量,把0赋给对应于图像背景的像素.
- MorphologicalComponents[image] 等价于 MorphologicalComponents[image,0].
- MorphologicalComponents 可用于二值、灰度和其它图像中.
- 可以指定下列选项:
-
CornerNeighbors True 是否包含拐角邻点 Method "Connected" 连通方法 Padding 0 使用的填充方法 - 可以指定下列 Method 设置:
-
"Connected" 对连接分量添加标签(默认) "Nested" 对嵌套连接分量添加标签 "Convex" 对在不重叠凸域中的对象添加标签 "ConvexHull" 求不重叠凸域 "BoundingBox" 求不重叠的边界框 "BoundingDisk" 求不重叠的边界圆盘 - MorphologicalComponents[image,Method->"Connected"] 也可用于 Image3D 对象.
技术笔记
-
▪
- 图像处理
文本
Wolfram Research (2008),MorphologicalComponents,Wolfram 语言函数,https://reference.wolfram.com/language/ref/MorphologicalComponents.html (更新于 2025 年).
CMS
Wolfram 语言. 2008. "MorphologicalComponents." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2025. https://reference.wolfram.com/language/ref/MorphologicalComponents.html.
APA
Wolfram 语言. (2008). MorphologicalComponents. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/MorphologicalComponents.html 年
BibTeX
@misc{reference.wolfram_2025_morphologicalcomponents, author="Wolfram Research", title="{MorphologicalComponents}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/MorphologicalComponents.html}", note=[Accessed: 05-October-2025]}
BibLaTeX
@online{reference.wolfram_2025_morphologicalcomponents, organization={Wolfram Research}, title={MorphologicalComponents}, year={2025}, url={https://reference.wolfram.com/language/ref/MorphologicalComponents.html}, note=[Accessed: 05-October-2025]}