Add new functions to compute local image correlation