I am working on a problem in which I am trying to represent a curve of arbitrary shape by a set of bounding rectangles. I am using regionprops(img,'BoundingBox') to get bounding rectangle on whole curve. I am not able to split this curve in a bounding box again so that I can get bounding box for these 2 (original curve splitted into 2 parts) curves and so on....
Thanks.