{"id":16162521,"url":"https://github.com/sunsided/convolution-template-matching","last_synced_at":"2025-08-01T10:40:08.307Z","repository":{"id":141992864,"uuid":"65951479","full_name":"sunsided/convolution-template-matching","owner":"sunsided","description":"Template Matching by Convolution in MATLAB","archived":false,"fork":false,"pushed_at":"2016-08-19T14:42:09.000Z","size":333,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:32:40.057Z","etag":null,"topics":["feature-detection","image-processing","matlab","template-matching"],"latest_commit_sha":null,"homepage":null,"language":"Matlab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunsided.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-18T00:22:24.000Z","updated_at":"2024-03-30T11:41:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fe7d851-9307-407b-b05b-4d125eff7eee","html_url":"https://github.com/sunsided/convolution-template-matching","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fconvolution-template-matching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fconvolution-template-matching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fconvolution-template-matching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fconvolution-template-matching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/convolution-template-matching/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950927,"owners_count":20373664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feature-detection","image-processing","matlab","template-matching"],"created_at":"2024-10-10T02:30:37.149Z","updated_at":"2025-03-18T22:31:08.952Z","avatar_url":"https://github.com/sunsided.png","language":"Matlab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template Matching by Convolution\n\n*Template matching* attempts to find instances of a given template in an existing image by finding areas of maximum correspondence. While this can be done in terms of a cross correlation, care has to be taken to normalize both input and template, as cross correlation by itself is not invariant to mean shifts.\n\nThis experiment follows the idea that **convolution** is the same operation as **cross correlation**, when all axes of the template (i.e. the kernel) have been flipped; in terms of a two-dimensional correlation with a template, this results in a two-dimensional convolution of the same template, rotated by 180°; so\n\n```matlab\nxcorr2(image, template)\n```\n\nis conceptually the same as\n\n```matlab\nconv2(image, fliplr(flipud(template)) % or\nconv2(image, rot90(template, 2))\n```\n\nFinding the template matches is then a question of finding the local minima (i.e. areas of maximum correspondence).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fconvolution-template-matching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Fconvolution-template-matching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fconvolution-template-matching/lists"}