how to increase or decrease the bounding box?

6 ビュー (過去 30 日間)
BV
BV 2013 年 6 月 16 日
i have created a bounding box around the blob (desired object) using 'regionprops'. I want to increase the size of the bounding box. can anyone help me?

採用された回答

Walter Roberson
Walter Roberson 2013 年 6 月 16 日
"How many legs does a dog have if you call the tail a leg?" Answer: "Four. Calling the tail a leg does not make it a leg."
"How big is a bounding box if you increase its size?" Answer: The size will be unchanged. If you were to change the size of the box, it wold no longer be the bounding box!
What you could do is take the coordinates of the bounding box and create new coordinates for a larger box. The last two coordinates are the height and width, so you could just change those, or you could also change the (x,y), depending on where, relative to the object, you want the expansion to be.
  1 件のコメント
BV
BV 2013 年 6 月 17 日
thank u.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by