Chnage the return value of template_matching. It will return the correlation coeficient.