title: Draw a rectangle over an object using Matlab
body: <p>I have an image which contains a coin image. Shape of the coin may be rectangle, square, circle, oval and etc. I want to draw a rectangle over the coin and segment the coin from it's background. I can't give x or y values of the rectangle, since coin may be in anywhere in the image. Does anyone know how to do this?</p>