title: How to identify other corners of rectangle?
body: <p>I am working in MATLAB on attached image. The rough rectangle may be having breaks (noise) at some points along its perimeter. The location of two corner points of rectangle (shown blue and red) is given. How can i identify other two corners of this rectangle accurately?
  <a href="https://i.stack.imgur.com/g2iTN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g2iTN.jpg" alt="enter image description here"></a></p>