bounding box for ratio
조회 수: 2 (최근 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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!