How to associate a graph object's nodes with image pixel location?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!