What are the properties in a BoundingBox from regionprops?
396 views (last 30 days)
I'm trying to figure out what coordinates are being stored from a BoundingBox. For instance
And the output
BoundingBox: [10.5000 11.5000 10 19]
What are those 4 values? Is it the [top left, top right, bottom left, bottom right] coordinates?
Image Analyst on 27 Mar 2016
It's [left, top, width, height]. Just be aware that the left and top are 0.5 pixels to the left and above, respectively, than the actual first column and first row of the binary image. It's because the Bounding box is defined such that it "contains" the blob, and if it ran right through the center of the top-most and left-most pixel, then that definition becomes somewhat ambiguous.
More Answers (2)
elvis okacha on 12 Apr 2019
Edited: Walter Roberson on 12 Apr 2019
I am trying to find length and width.is this ok?: