How to detect bubbles from a flow of water from picture below?

4 次查看(过去 30 天)
Hi,
I need to write a code that will detect the bubbles in the picture below in order to calculate the air to water ratio.
I have attached examples with white and black backgrounds - im not sure which would be easier to process
I want to be able to detect the bubbles, then calculate the radius, then eventually volume of each bubble.
I have tried the Sobel edge detection to detect bubbles, when i did it with a picture of circles it worked fine, but now im using the image of the bubbles it isnt detecting the bubbles correctly.
I have also tried, Canny and Prewitt.
image=imread('bubblesblack.png');
I=rgb2gray(image);
BW=imbinarize(I, 1);
BW1=edge(I, 'Sobel');
imshow (BW1)
It is showing this:
Any help would be appreciated!Screenshot 2019-02-08 at 11.03.29.png
bubbleswhite.png bubblesblack.png

回答(1 个)

Pedro Silva Aires
Hello Coral, any luck with the issue?
I'm performing similar experiment and having the same problem with my images.
  1 个评论
Image Analyst
Image Analyst 2019-6-7
She needs to work on improving her image capture situation first, like using more appropriate lighting and surrounding background. For example, many/most of the reflections could be removed using crossed polarizers. The image analysis could be made a lot easier if care was taken to improve the images.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by