title: Joining discontinuous skeleton shapes and discontinuous lines
body: <p>I have a binary image, I want to detect discontinuous lines and linking them. 
  I don't know anything (coordinates, angle etc). 
  Can any one guide me how should I start? Suppose I have this image:</p>
  
  <p><img src="https://i.stack.imgur.com/9UFWc.png" alt="enter image description here"></p>
  
  <p>I want to join discontinuous lines. And I want to store information of lines joining (in an array) to use afterward.</p>