how to finding length and width of an object in an image

조회 수: 4 (최근 30일)
muzafar
muzafar 2013년 2월 18일
after detecting the object in the image how to find the length and width of that object

답변 (1개)

Matt J
Matt J 2013년 2월 18일
Unless the object is rectangular, it would depend greatly on how you define its length and width.
One possibility is to use
regionprops(...,'MajorAxisLength')
regionprops(...,'MinorAxisLength')

Community Treasure Hunt

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

Start Hunting!

Translated by