Detecting circular pattern in image

2019-06-09 08:04发布

I have a image. In this image there are some vertical lines and in these lines there appear some circular/elliptical or convex patterns. I want to detect the position of these circular/elliptical or convex patterns using EmguCV / OpenCV. Can any body of you help me in this regard?

This is the image in which i want to find the circular/elliptical patterns: Input Image

waiting for your help.

2条回答
祖国的老花朵
2楼-- · 2019-06-09 08:45

You can try to

  • find contours (just the outer - CV_RETR_EXTERNAL)
  • fill their interiors (draw using -1 for thickness for filling)
  • apply a morphology operation for detecting just the blobs (open should solve it; normally MORPH_RECT should do it, but please try more sizes to see which one is the best for your purpose)

Now you have just the wanted regions. If you need a point you may:


  • or apply the moments for finding the center of each region
查看更多
太酷不给撩
3楼-- · 2019-06-09 08:56
登录 后发表回答