How can I apply bounding box for a discontiguous region in Matlab
问题 I am trying to apply a bounding box for the discontiguous region in the sample below. I found something in Matlab help docs on regionprops but it did not explain anything about how to do it. I need the smallest Box that can contain all the blobs in the image. 回答1: By default, when introduced with a logical type input mask, regionprops automatically apply bwlabel to the mask and computes properties for each connected component of the input mask. In your case, this is not a desirable behavior,