MATLAB Bounding Box
Let's say I have a binary image like this:
What would be the easiest and most efficient way to create a rectangular bounding box in Matlab that would include all the white shapes in it (regerdless of how many there are)? I'd have no problems creating separate bounding boxes for each shape, I'd probably go something like "regionprops" and "BoundingBox", but how do I create one bounding box for all of them?
Thanks in advance for any tips.