A fast globally optimal algorithm for template matching using low-resolution pruning | Synapse