我如何使用imagemagick或其他语言检测这个圆形blob?

时间:2017-03-09 22:18:32

标签: computer-vision imagemagick

我有一个我无法察觉的圆形斑点。我试图消除噪音,但我无法想象一种过滤这个圈子的方法

enter image description here

请提供有关如何实现这一目标的建议。

1 个答案:

答案 0 :(得分:1)

尝试以下内容。

  • 转换并提取色度通道
  • 阈值和否定(反转)
  • 使用连通组件标签过滤掉小区域
  • 使用形态开放来平滑边界

转换mpG7Z.png -colorspace HCL -channel g -separate + channel \
-threshold 18%-negate \
-define connected-components:mean-color = true \
-define connected-components:area-threshold = 250 \
连接组件8 \
- 形态开八角形:4 \
result.png