Wolfram Mathematica:在MorphologicalGraph中合并两个边

时间:2018-09-23 13:09:58

标签: wolfram-mathematica image-manipulation edges morphological-analysis

假设我有一个形态图,如下:

enter image description here

并且我想将其中一些明显短于其他边缘的边缘合并为一个奇异边缘,如下图的红色所示:

enter image description here

我该怎么做?

任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:1)

在应用MorphologicalGraph之前,请先处理原始图像。为此,请使用Image Processing工具。例如,比较简单的应用Dilation可以缩小一条短边,

enter image description here