MATLAB: I want to make bounding box

matlab gui

I want to make a bounding box in the area of the eye in this picture, so I can find the midpoint of the eye area, but I do not know how to make it. I was expecting help from the experienced. thanks in advance.
this is the picture:
href="http://www.freeimagehosting.net/3z35z"<img src="http://www.freeimagehosting.net/t/3z35z.jpg"></a>

Best Answer

I have the perfect demo for you: BlobsDemo http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It has a bunch of blobs on the screen (coins) and then finds the centroids of them and cuts them out, using the bounding box, to new smallsub images.
But basically, you call regionprops and ask for 'BoundingBox'. Then use imcrop or regular indexing to extract the box containing your blob.