필터 지우기
필터 지우기

How to find out center of in the foreground region of a binary image

조회 수: 4 (최근 30일)
hosse
hosse 2015년 12월 10일
댓글: Image Analyst 2015년 12월 14일
I have an binary image, (1 for white, 0 for black pixel value), all are black except a circular like pure white object in the image.
How to find out the center of the white region (it is foreground region), not the center of the image. Finally how to segment the white region only?

채택된 답변

Image Analyst
Image Analyst 2015년 12월 10일
Please attach the original image here, not as a .mat file, and not on some third party site.
You can look at my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 and see how finding the centroid(s) is done.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 12월 14일
The weighted centroid is done by regionprops() - it doesn't matter if the array is 2D or 3D, it will work for both.

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

추가 답변 (1개)

hosse
hosse 2015년 12월 14일
Hello, I have removed the attachment of third party site. I can find weighted centroid of 2D image. Could you let me know any functions (or way) to find centroid of 3D MRI image?

Community Treasure Hunt

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

Start Hunting!

Translated by