I'm trying to reduce a thick line, in raster space, down to a thin line, preferably one pixel wide (or thick).
Does anybody know of an algorithm that can do this?
Imagine you draw with a marker on a piece of paper, scribbling here and there. Then you scan this paper into a grey-scale or black-and-white raster image. How can I produce another black-and-white image the same size but the lines you drew are very thin instead of thick?
Surely this must be a solved problem, right?