Template Matching in Images Using Segmented Normalized Cross-Correlation

In this paper, a new variant of 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 template image approximation, enabling more efficient calculation of approximate NCC with the source image than if the original template were used 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 are contingent on per-segment pixel intensity variance. In the approximate template, each segment gets the corresponding mean grayscale value of the original template assigned to all of its pixels. The conducted tests demonstrate that the proposed algorithm exhibits superior computational performance with negligible NCC approximation errors in comparison with the well-known FFT-based algorithm for NCC computation, when applied on less visually complex and/or smaller template images. In other cases, the proposed algorithm can maintain either the computational performance or NCC approximation error within the range of FFT-based algorithm, but not both.

Authors

Institutions

Publication Details

Published
2025-06-02
DOI
https://doi.org/10.1109/mipro65660.2025.11131796
Citations
1
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
1.24
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Template Matching in Images Using Segmented Normalized Cross-Correlation

Dragan Marušič, Zoran Kalafatić, Siniša Popović
1 citations
Industrial Vision Systems and Defect Detection
1.24
article

Template Matching in Images Using Segmented Normalized Cross-Correlation

Dragan Marušič, Zoran Kalafatić, Siniša Popović
article en
1 citations

Abstract

In this paper, a new variant of 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 template image approximation, enabling more efficient calculation of approximate NCC with the source image than if the original template were used 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 are contingent on per-segment pixel intensity variance. In the approximate template, each segment gets the corresponding mean grayscale value of the original template assigned to all of its pixels. The conducted tests demonstrate that the proposed algorithm exhibits superior computational performance with negligible NCC approximation errors in comparison with the well-known FFT-based algorithm for NCC computation, when applied on less visually complex and/or smaller template images. In other cases, the proposed algorithm can maintain either the computational performance or NCC approximation error within the range of FFT-based algorithm, but not both.

University of Zagreb (HR)
Openalex Percentile: Top 16%
Industrial Vision Systems and Defect Detection
1.24
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.