title: Is there any way to find a distance between contour?
body: <p>I got the binary image by python(opencv) and try to find the distance between each contour as following.
  For this example,</p>
  
  <p><a href="https://i.stack.imgur.com/YDsdI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YDsdI.png" alt="Binary image"></a></p>
  
  <p>I would try to measure each contour distance of each line like this:</p>
  
  <p><a href="https://i.stack.imgur.com/jK9U3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jK9U3.png" alt="red arrow loop to get distance "></a></p>
  
  <p>Is there any way to catch the each contour point and get the distances I marked as red arrow and extend to  each line (1st,2nd.....nth)</p>
  
  <p>I tried to use for loop to catch each point but I don't know how to automatically measure the distance like this (1st&lt;-->2nd,2nd&lt;--->3rd,。。。。。。nth-1&lt;-->nth)</p>