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

3 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 14 Okt. 2020
Bearbeitet: Ameer Hamza am 14 Okt. 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.

Weitere Antworten (1)

Steven Lord
Steven Lord am 14 Okt. 2020
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.

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by