필터 지우기
필터 지우기

How to find ht:width ratio of a connected component?

조회 수: 1 (최근 30일)
Sucheta
Sucheta 2012년 2월 7일
Application: Face detection by skin color I have separated out the connected components in a BW image. All I want to do is find out the ratio of height:width ratio of individual component. The Matlab version I am using is 2010. Please help asap.

채택된 답변

David Young
David Young 2012년 2월 7일
Have a look at regionprops. It will give you an aspect ratio for each blob, or the bounding box.
  댓글 수: 2
Sucheta
Sucheta 2012년 2월 8일
Thanks, I will check it out and get back to you.
Sucheta
Sucheta 2012년 2월 27일
**I am unable to follow. Can you explain me with an example//
**How to upload an image. It will be easy for me to explain.
**Also,
I have this BW image. Black backround and white blob.
I want to find out the centroid of that blob.
After this process I want to find out its y-axis and x-axis distance.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by