I am still relatively new to Mathematica, but with the great help of this forum, I managed to transform a doodled sketch into a graph, see attached file. I have used this code:
doodle = Import["filename.jpg"];
graph =
MorphologicalGraph@
SkeletonTransform@
Thinning@Closing[ColorNegate@Binarize@doodle, DiskMatrix[2]];
However, what I would like to do now is to output a value for each edge that reflects how thick or thin the edge was (on average over its length) in the original doodle sketch. Is this possible at all? If so, how do I do it?