title: Find the corner coordinates of a rectangle in MATLAB
body: <p>Given an image where there is a black rectangle on a white background, how can we find the four corner coordinates of a rectangle in MATLAB?  Specifically, how do we find the top left, top right, bottom left and bottom right corners of this rectangle?</p>