How to visualize graph nodes on top of image with segmented cells they correspond to

I'm looking to visualize the nodes and edges of my graph in the physical layout that corresponds to the spatial location each node corresponds to in a segmented image. I have the spatial information for each segmented epithelial cell and the node it corresponds to in xy and am just wondering if there is a plugin that already exists to do this.

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 14 Oct 2020
Modifié(e) : Ameer Hamza le 14 Oct 2020
You can construct a graph object in MATLAB: https://www.mathworks.com/help/matlab/ref/graph.html. Then you can also plot() the graph object: https://www.mathworks.com/help/matlab/ref/graph.plot.html. And in the plot function, you can specify the XData, and YData values to place the nodes at required locations.

Plus de réponses (1)

The example in this post from Loren's blog superimposes a graph of state centroids onto a map of the states represented as a collection of polyshape objects. You should be able to use the technique it shows (using XData and YData) with cell coordinates rather than geographical locations.

Catégories

En savoir plus sur Networks dans Centre d'aide et File Exchange

Produits

Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by