title: Matlab: find major axis of binary area
body: <p>the output of some processing consists of a binary map with several connected areas. </p>
  
  <p>The objective is, for each area, to compute and draw on the image a line crossing the area on its longest axis, but not extending further. It is very important that the line lies just inside the area, therefore ellipse fitting is not very good.</p>
  
  <p>Any hint on how to do achieve this result in an efficient way?</p>