How to associate a graph object's nodes with image pixel location?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to associate the nodes of a graph object with pixel location in an image. For example I might have a tree graph object representing a structure type, say a chair, where the k nodes represent key points of the chair connected by l hierarchal tree edges. I also have the k x 2 pixel locations of those points in an image. How can I associate the two using the new graph object structure, and for example, overlay the graph on the images? say something like:
imshow(img); hold on; plot(graphObj.XData, graphObj.YData);
In this example, Steve plots a graph structure with XData and YData fields, but when I tried this I get an error message that there are no such public properties associated with the class graph. Any suggestions would be much appreciated.
0 commentaires
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!