I was implementing template matching prog and came across normalized cross correlation formula . My question is why do we have a negative range for the limits of template (s=-a to a and t =-b to b ) and how do we implement this thing in prog as array can't have negative indexing.
I have attached the formula.
Thank you.