title: Cross-correlation coefficient confusion
body: <p>I wanted to write a program in matlab to calculate the correlation coefficient between a template (with smaller n) and a larger original picture.  My question is, how do I generate a correlation picture if the size of the template and the original picture is different? I understand that there is a function xcorr that I can use in matlab, but I wanted to program this myself. Thank you very much! </p>