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!
0 个评论
回答(1 个)
Pedro Silva Aires
2019-6-6
Hello Coral, any luck with the issue?
I'm performing similar experiment and having the same problem with my images.
1 个评论
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!