Template Matching: Matched Spatial Filters and Beyond