title: How to find the longest line of a binary image using matlab
body: <p><img src="https://i.stack.imgur.com/K9Drj.jpg" alt="enter image description here"></p>
  
  <p>As you can see in image, I have image that contain many lines. how can I get the longest line using matlab, then remove the other lines?</p>