Message Boards Message Boards

2
|
5510 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

Create a graph of nodes and edges from an image?

Posted 5 years ago

I am using the commands given here to convert the following image to a graph of vertices and edges.

InputImage = link

SimplifiedImage=Pruning[Thinning[
DeleteSmallComponents[Binarize[Image], 40000]], \[Infinity]]

OutputImage = enter image description here

OutputImage contains some kinks that are not present in the original images. Also, there are some unfinished node-edge connections. The overall image has some disconnected segments.

When the Output Image is converted to a graph, knots appear in the graph.

Graph = MorphologicalGraph[OutputImage]

enter image description here

I would like to ask for suggestions on how to obtain a complete image without disconnections and knots.

POSTED BY: Natash A

Due to its exceptional value, the comment by @Szabolcs Horvát was moved to a stand-alone discussion thread and awarded a Staff Pick badge. @Natash A you can consider the information at the following URL to be answer to your question posted previously by @Szabolcs Horvát :??

https://community.wolfram.com/groups/-/m/t/1555948

??All sub-comments were transferred there too. Feel free to continue discussion at this original or the new thread.

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract