How to build a graph from the nodes as defined image regions and edges connecting them?

asked 2015-02-12 02:20:18 -0500

Mat29 gravatar image

updated 2015-02-12 02:27:44 -0500

berak gravatar image

How to build a graph from the nodes as defined image regions and edges connecting them? I have pathology image with segmented vessels on it. I want to label centroids as region centers where image has min, max and average black vessel pixel number and, using them as nodes, put edges between these centroids and compute graph statistics. I found igraph library, however can`t figure out how to input centroid coordinates to build the graph and visualize it on the actual image. I use Python with openCV, simpleCV, ITK, Mamba etc. Thanks.

edit retag flag offensive close merge delete