bounding box for ratio
3 次查看(过去 30 天)
显示 更早的评论
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..
0 个评论
采纳的回答
Sean de Wolski
2013-10-9
编辑:Sean de Wolski
2013-10-9
doc regionprops
Will give you bounding box.
doc size
Will give you image size.
2 个评论
Sean de Wolski
2013-10-9
Well then figure out how you defined a region of interest in your rgb image, once you have this, repeat with regionprops, or just use find to find the indices and compute bounding box yourself.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!