I'm looking for a feature/function in either python opencv/ndimage/gdal/etc. or qgis/saga/grass that will help clean up a skeletonized image that I'd like to vectorize into a shapefile of lines/polylines.
I spent considerable effort producing this network and I'd like to vectorize it and remove 'jaggies' (short lines to go nowhere) and also take the shortest path through the clumps of webby areas to produce as straight lines as possible.
I realize this is a multi-step process and there may be possibilities in the python space or in gis. I know the steps I would do if I did it from scratch but it would take a while!