how do i label objects in an image which is quite unclear? When i make it bw, objects overlapping get labelled as a single object. I want to be able to call each object seperately.
조회 수: 8 (최근 30일)
이전 댓글 표시
It's a snapshot of a microchannel part of an experiment that I am working on. I want to find the number of bubbles and surface area of each bubble. Please Help

댓글 수: 0
채택된 답변
Ahmet Cecen
2016년 6월 4일
Look up circular Hough transform.
https://en.wikipedia.org/wiki/Circle_Hough_Transform
댓글 수: 0
추가 답변 (1개)
Image Analyst
2016년 6월 4일
편집: Image Analyst
2016년 6월 4일
Do you mean like this:

If so, then see the attached m-file, which will produce the image above.
You can also get the equivalent circular diameter as well as the area if you ask regionprops for 'EquivDiameter'.
If you want the filled area of the black rings, then that will require a slight modification. Let me know if you need that.
댓글 수: 4
Image Analyst
2016년 6월 5일
Then you'll have to do it like I suggested by changing the threshold to <50, then using the steps detailed in Steve's blog to split apart bubbles that are touching.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!