Infrastructure for normalized cross-correlation computations.