Filters as templates

filter can find sth in the sig.

1 1-D cross-correlation

you pull out a section of the original as the filter and do the correlation,you can get the peak at the location where you pull out the signal.
Reason:the position of the pos and neg signals are totally the same.

1D

matlab code

Note:normxcorr2() the comparison start where the third number overlap the first num in the sig.

Paste_Image.png
Paste_Image.png

I bet you are itching to do this on yourself!Taks an template and image as input,and return an x and y coordinates where the template was found in the image.

Paste_Image.png
Paste_Image.png

So can you use the template matching to do the stuff like finding the cracks and fissures in the metal components,?
No!Because that the templates matching can only be a satisfactory in the case when the appearance doesn't change a lot.

cite:

https://classroom.udacity.com/courses/ud810/lessons/3490398568/concepts/34996085510923

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一级标题 只需要在文本前面加#号键就可以是一个标题,同样可以添加二级标题、三级标题。。。 列表格式 无序列表:在文...
    郭子祥阅读 5,234评论 0 2
  • Git本地仓库,即版本库,它的作用是为本地的代码文件或其他文件提供一个存放的地方,在这个目录里的所有文件都将被Gi...
    ALOLONGHUN阅读 6,745评论 0 2
  • 人,真是奇怪,没有外人来证明你,就往往看不出自己的价值。 长久被封闭在没有什么分别的城市中,周围越发的热闹反而觉得...
    韧甄防臭袜阅读 2,118评论 0 0
  • 你可曾看到一片树叶的翩然而至? 你是否听到过大海的呜咽低沉? 你能否领略日落的优雅俊美? 你知不知道小鸟的自由潇洒...
    清泽阅读 1,729评论 3 2
  • 我们在编写Web应用时,经常需要对页面做一些安全控制,比如:对于没有访问权限的用户需要转到登录表单页面。要实现访问...
    程序猿DD阅读 23,365评论 6 32

友情链接更多精彩内容