I have an image, like the one below that has different paths. I want to be able to detect the thin parts of these paths and highlight them. What is the best way to go about this?
I got a bit confused on your question. Are you looking for the paths that are thin? or are you trying to make the paths thin?
- Maybe this paper about Stroke Width Transform can help you.
- I would also like to suggest doing edge detection first. Then you compute the distance from one edge to another, both on X and Y directions, and then saving the smallest distance in each pixel of the path. To highlight the paths you will look for the smallest values saved on each pixel of the paths.
I hope this helps.