MATLAB: Bounding box for ratio

bounding boximage processing

i wanted to calculate simple bounding box ratio.
m=(a1*b1)/a+b
where
a1=width of bounding box
b1=height of bounding box
a= width of image
b=height of image.
plz help me. first time i am using bounding box..

Best Answer

doc regionprops
Will give you bounding box.
doc size
Will give you image size.
Related Question