image-processinggraphwolfram-mathematicaedgesmathematical-morphology

Combine two edges in MorphologicalGraph


Suppose I have a Morphological Graph as follows:

enter image description here

and I would like to combine some of these edges which are significantly shorter than the others into a singular edge as indicated in red in the following picture:

enter image description here

How would I do this?

Any help would be appreciated!


Solution

  • Manipulate your original image before you apply MorphologicalGraph. Use Image Processing tools for this. For example, simple application of Dilation can shrink a short edge, compare:

    enter image description here