how to connect edges to nodes in a image using minimum spanning tree approach
问题 I am doing my project on graph matching in hand written image, i want to represent a given word image in graph, am using the below algorithm Algorithm: input: Binary image B, Grid width w, Grid height h Output: Graph g = (V, E) with nodes V and edges E 1: function Grid(B,w,h) 2: for i ← 1 to number of columns C = Width of B/w do 3: for j ← 1 to number of rows R = Height of B/h do 4: V = V ∪ {(xm, ym) | (xm, ym) is the centre of mass of segment sij} 5: for Each pair of nodes (u, v) ∈ V × V do