arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01286cs.CV
收藏

使用分段归一化互相关的图像模板匹配

Template Matching in Images using Segmented Normalized Cross-Correlation

University of Zagreb Faculty of Electrical Engineering and Computing(萨格勒布大学电气工程与计算机学院)

Davor Marušić, Siniša Popović, Zoran Kalafatić

AI总结:

提出一种基于分段预计算模板图像近似的归一化互相关(NCC)算法变体,在低视觉复杂度或小模板图像上以可忽略误差实现优于FFT的计算性能。

摘要:

本文在图像模板匹配的背景下,提出了一种归一化互相关(NCC)算法的新变体。该算法基于模板图像近似的预计算,与使用原始模板进行精确NCC计算相比,能够更高效地计算与源图像的近似NCC。近似模板通过分裂与合并方法从模板图像中预计算得出,产生轴对齐矩形分段的分解,其大小取决于每段的像素强度方差。在近似模板中,每个分段被赋予原始模板中对应像素的平均灰度值。与著名的基于快速傅里叶变换(FFT)的NCC算法相比,当应用于视觉复杂度较低和/或较小的模板图像时,所提算法实现了卓越的计算性能,且NCC近似误差可忽略不计。在其他情况下,所提算法可将计算性能或NCC近似误差维持在基于FFT算法的范围内,但无法同时兼顾两者。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑