How do I detect, count and measure the diameter of the bubbles in this image as accurately as possible?

9 views (last 30 days)
I have used the hough transform via imfindcircles , even after pre-processing the image using imtophat etc but I still can't get an accurate result.

Answers (1)

MathReallyWorks
MathReallyWorks on 25 May 2017
Hello Ashwin,
Checkout the similar question on: Detecting bubbles from images
After detecting these bubbles use blob measurement in regionprops() and find out the features(i.e area and perimeter) of each blob. Use Diameter=4*area/perimeter for each blob.
Set threshold properly so as to get maximum accuracy.
  1 Comment
Ashwin Srinivas
Ashwin Srinivas on 26 May 2017
Hello! Thanks for the answer, I tried it but active contouring doesn't seem to work, the main problem with that image i think is that when I do try to threshold or segment in any way, only a part or one side of the circular bubbles are being retained. It comes down to a semi-circle or lesser, mainly because the light is shining from the right and does not reach the part of the bubble behind.Some examples of rather unsuccessful attempts to capture the bubbles in the entirety of their circular shape have been attached.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!