I want to know how to extract the adjacency matrix from an image in matlab.
Let us take this image http://imageshack.us/photo/my-images/593/69363210.png as an example.
The code that I want to write in matlab should take this image as input and construct a graph with 6 vertices(two vertical lines and one horizontal line).It should also provide me the adjacency matrix of the graph.Only image can be given as input.
The logic should also work on any image that is made up of horizontal and vertical lines(need not be alphabets like 'L' or 'T',but some randomly generated images with only horizontal and vertical connections).Is it possible to generalize?