分支点(OpenCV,C++)
我想识别此图像中闪电的分支点:
https://i.sstatic.net/PXujf .jpg
我首先做的是对图像进行阈值处理,以便获得闪电部分 图像并丢弃背景。这是结果
https://i.sstatic.net/IYNTi.jpg
我使用了阈值openCV 中的函数,生成的图像非常糟糕 随着质量的丧失,树枝不再可见。
好吧,基本上我有两个问题:
- 如何正确分割图像,以便正确捕获图像的闪电部分。
- 那么我怎样才能识别分支点呢?对于我想要的每个分支点 在其上画一个红色圆圈。
预先感谢您
I want to identify the branching points of the lightning in this image:
https://i.sstatic.net/PXujf.jpg
What I did first was threshold the image such that I get the lighning part
of the image and discard the backround. This is the result
https://i.sstatic.net/IYNTi.jpg
I used the threshold function in openCV and the resulting image is pretty much bad
as the quality is lost, the branches are no longer visible.
Ok, basically I have 2 problems:
- How can i properly segment the image such that the lightning part of the image is properly captured.
- How can I then, identify the branching points? For every branch point i want to
draw a red circle over it.
Thanking you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
分割/阈值:
我会尝试这个。
他们还有一篇关于图像分割的 NIPS2012 研讨会 (DISCML) 论文,该论文似乎可以处理相当优雅的细长物体(例如图中的闪电)。
分支点:
一旦你有了一个好的掩模,你就可以使用形态操作来提取分支点(Matlab代码):
Segmentation / thresholding:
I would give this a try.
They also had a NIPS2012 workshop (DISCML) paper on image segmentation that seems to handle quite elegantly thin elongated objects (like the lightnings in the picture).
Branching points:
Once you have a good mask you can use morphological operations to extract the branching points (Matlab code):