Template Matching using Correlation Coefficients
Version 1.1.0.0 (4.85 KB) by
Yue Wu
This file includes a simple but fast correlation based template matching algorithm.
The correlation coefficient calculation is implemented not with built-in function corr or corr2 but with conv2. Function corr is relatively slow for template matching purpose and it is also required extra considerations on controlling the boundary and selecting region of interest on the frame image. However, by using conv2, the template matching speed has been accelerated and run-time has reduced to a reasonable value.
Cite As
Yue Wu (2026). Template Matching using Correlation Coefficients (https://ch.mathworks.com/matlabcentral/fileexchange/28590-template-matching-using-correlation-coefficients), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Tracking and Motion Estimation > Template Matching >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > ROI-Based Processing >
Find more on Template Matching in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
