1 | initial version |
Am I correct that what you want is a few dozen line segments connecting the nearby dots?
Assuming I am correct, you should try the Line Segment detector and the Probabilistic Hough Transform. It's possible that the skeletonization method could help, if what it's connecting is the parts of the line. If not, you can try connecting them yourself by doing a Morphology Closing operation with an appropriately sized and shaped kernel.
A suggested set of functions is this:
Of course, you'll want to play around with the settings to try and get a good set of line candidates. I would start by forgoing the middle steps and seeing if the LSD or Hough can give you good results. The LSD seems to produce far more than the Probablistic Hough, but of course, that can mean more false hits.