Bubble detection and diameter estimation
古いコメントを表示
Hey,
I wanted to detect and measure the diameter of the bubbles (elliptical and circular) in this image. I tried various techniques but couldn't do so.
Please help me out.

採用された回答
その他の回答 (1 件)
Image Analyst
2021 年 1 月 31 日
0 投票
Sounds like you got it figured out since you accepted an answer but I'd first have improved your image capture by placing a black velvet shroud behind your vessel to remove background clutter. Then I'd take an image with no bubbles and subtract the subtract that from the image with bubbles using imabsdiff(). Then threshold and call regionprops(). Realize that the bubbles may overlap and there is no way you can split them apart unless you do something like make a real time CT image. But the area fraction or size distribution of what you do have may be enough for you do differentiate different bubble makers or different bubble size distributions.
But anyway, glad you got it figured out.
8 件のコメント
Avdhesh Vermani
2021 年 1 月 31 日
編集済み: Avdhesh Vermani
2021 年 2 月 5 日
Image Analyst
2021 年 2 月 6 日
I did. And I'm waiting for you to upload a new picture with the black background. When can you post it?
Avdhesh Vermani
2021 年 2 月 6 日
編集済み: Avdhesh Vermani
2021 年 2 月 6 日
Image Analyst
2021 年 2 月 6 日
Maybe it was from a video. Is there some way to get an image of the apparatus before the bubbles started appearking? Like from the first frame of the video?
Avdhesh Vermani
2021 年 2 月 8 日
編集済み: Avdhesh Vermani
2021 年 2 月 8 日
Image Analyst
2021 年 2 月 8 日
It might help but you'll need to scale your image by the ratio of the intensities, because you can't subtract two images if they're not the same exposures. And it looks like they're not.. Pick some part of the scene that is not expected to change at all then divide the image by the value there and multiply by the value of the reference image there. Then call imabsdiff(). See if that works. Hopefully everything will subtract away except the bubbles. If that doesn't work you may not be able to do it unless you manually trace the bubbles or snap new images.
Avdhesh Vermani
2021 年 2 月 9 日
編集済み: Avdhesh Vermani
2021 年 2 月 9 日
Image Analyst
2021 年 2 月 9 日
See attached demos for imfreehand().
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!