필터 지우기
필터 지우기

how to find centroid of each conneted component of a Binary Image in matlab, and represent each connected component with its centroid..??

조회 수: 6 (최근 30일)
Hi, I want to represent each connected component with its centroid, after finding centroid of each connected component , i want to represent each connected component with its centroid????

채택된 답변

Image Analyst
Image Analyst 2018년 1월 6일
It finds centroids, weighted centroids, and bounding boxes.

추가 답변 (2개)

Walter Roberson
Walter Roberson 2018년 1월 6일
regionprops and ask for centroid.
Please explain more about what you mean by "represent" the component with its centroid
  댓글 수: 5
Mohammad Bhat
Mohammad Bhat 2018년 1월 6일
After forming bounding box for each connected component, I have to take center of bounding box....
Image Analyst
Image Analyst 2018년 1월 7일
Are you sure you want that, or do you want the centroid like you originally said? My code gives you the bounding box, the centroid, and the weighted centroid, all of which could be at a different location. The center of the bounding box is simply the average of the top row and bottom row, and the same in the horizontal direction. Note that the center of the bounding box, as well as the two centroids may not actually lie inside the blobs. It's possible it could be outside it.

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


Mohammad Bhat
Mohammad Bhat 2018년 1월 8일
Sir, What do you suggest, If I have to take the representation of a bounding box. Which will be more representative center,centroid and any other.Whether they are in or outside of blob doesn't matter. As far as they are representative....
  댓글 수: 5
Mohammad Bhat
Mohammad Bhat 2018년 1월 10일
Sir, Is there any suggestion or where I can refine it....thanks in advance

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by