best approach for template matching of binary (edge) images

老子叫甜甜 提交于 2019-12-12 03:36:09

问题


To all skimage and opencv gurus, given:

  1. Scene Image

  1. Template Image

What is the best approach to find the cross in the scene image ? These are output from smoothing, and canny filters. Now, I tried all kinds of examples in skimage, and opencv template matching but the results are not satisfactory.

My ideal solution will be rotation, translation invariant (scale invariant will be a bonus) . Is there a way to just convert to contour points and them do a registration point cloud ? Will that be more accurate ? I thought about RANSAC but how do I give the inputs to RANSAC?

Thanks


回答1:


My approach to solving a similar problem was to create a large set of rotated and scaled variations of the template image and use opencv's matchTemplate function.

I would also recommend the preprocessing step of filling all detected and closed contours (for both template and scene image) white since the largely black template image might create false positives in the black regions of the scene image.



来源:https://stackoverflow.com/questions/34622852/best-approach-for-template-matching-of-binary-edge-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!