MATLAB: How to find the midpoint in between end point and branch point

image processingMATLABpattern recognision

i am working on hand written word images, i want to represent the word image in the form of graph. i want to find the mid points in between two key points and two branch points

Best Answer

I'd think taking the average of the x and y values for each endpoint would do it:
xMiddle = (x1+x2)/2;
yMiddle = (y1+y2)/2;
or am I overlooking something?