How to remove thin lines from the following image?

3 ビュー (過去 30 日間)
Daniel Powell
Daniel Powell 2022 年 8 月 1 日
回答済み: Steve Eddins 2022 年 10 月 3 日
I am trying to isolate the circular droplets in the following image. However, I can't work out how to remove the thin lines of the chambers and if I just apply imfindcircles to the binarized image it does not provide me with what I need no matter how I tweak it. It keeps finding the empty chambers as circles (even though they are not complete circles) and it sometimes finds the odd shaped droplets and the droplets that are larger than the chambers (and therefore, not circular) as circles.
Once I isolate the circles I will track them over a few thousand images and monitor the mean gray level but I know how to do that.
Thanks in advance
  2 件のコメント
Walter Roberson
Walter Roberson 2022 年 8 月 1 日
What happens if you do a morphological thinning operation with a width that erases the thin lines but leaves the thicker lines present ?
Daniel Powell
Daniel Powell 2022 年 8 月 1 日
Thanks, that's helpful.
It solves the part about getting rid of the chamber lines. However, the bigger droplets that aren't circular such as the one pictured below are still detected as "circles" by imfindcircles and if I lower the sensitivity so that these aren't detected then some of the other "genuine circles" are also excluded.

サインインしてコメントする。

回答 (2 件)

Matt J
Matt J 2022 年 8 月 1 日
Perhaps
bwpropfilt(bW,'Eccentricity',____)

Steve Eddins
Steve Eddins 2022 年 10 月 3 日
Try using the 3rd output of imfindcircles (metric) to distinguish the bigger droplets that aren't really circles.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by