vix.ing · top · new · best · stats · spec

Template Matching in Images using Segmented Normalized Cross-Correlation

2025/02/03 by Marušić, Davor, Siniša Popović, Popović, Siniša +2 · 1 citation
Computer Science · Engineering · #Computer Vision and Pattern Recognition (cs.CV) #FOS: Computer and information sciences #Image Processing and 3D Reconstruction #Image and Object Detection Techniques #Industrial Vision Systems and Defect Detection

paper · pdf · doi:10.48550/arxiv.2502.01286

openalex publication_date 2025/02/03 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/01

Abstract

In this paper, a new variant of an algorithm for normalized cross-correlation (NCC) is proposed in the context of template matching in images. The proposed algorithm is based on the precomputation of a template image approximation, enabling more efficient calculation of approximate NCC with the source image than using the original template for exact NCC calculation. The approximate template is precomputed from the template image by a split-and-merge approach, resulting in a decomposition to axis-aligned rectangular segments, whose sizes depend on per-segment pixel intensity variance. In the approximate template, each segment is assigned the mean grayscale value of the corresponding pixels from the original template. The proposed algorithm achieves superior computational performance with negligible NCC approximation errors compared to the well-known Fast Fourier Transform (FFT)-based NCC algorithm, when applied on less visually complex and/or smaller template images. In other cases, the proposed algorithm can maintain either computational performance or NCC approximation error within the range of the FFT-based algorithm, but not both.

Cited by

Related