MATLAB: How to get the boundingbox in the orgnila image

boundingboximage processingMATLAB

I have a binary image. After processing I got onther image with a boundingbox (max area). At last I want to get the same boundingbox in the same position in the orginal image. What function I have to use to do so. I have attached the sequence. Thnks in advance.

Best Answer

See my Image Segmentation Tutorial in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
It does all of that: