Modified Cross-Correlation Template Matching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing image processing systems face challenges in accurately and efficiently performing template matching due to the normalization cross-correlation function being too sensitive to intensity changes, leading to incorrect multiple matching regions, especially in uniform or similar structured images.
Innovation Solution
An improved similarity metric is introduced, modifying the normalized cross-correlation function with factors related to statistics of both the template and image, allowing for controlled discriminative ability, enabling accurate and efficient template matching by penalizing differences in mean and standard deviation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the normalized cross-correlation function is used for template matching, then the matching process is simple and fast, but it is too sensitive to intensity changes leading to incorrect multiple matching regions
Solution Approach 1:
The patent modifies the normalized cross-correlation function by introducing a penalty term that changes the sensitivity parameter of the similarity metric. The modified function NCC(p, t) = (Σ(p_i - μp)(t_i - μt)) / (σp * σt * (1 + k * |μp - μt|)) includes a penalty factor k * |μp - μt| that dynamically adjusts based on the difference between mean intensities of the patch and template, reducing sensitivity to intensity changes while maintaining computational efficiency
Solution Approach 2:
The patent introduces an intermediary penalty term that mediates between the original cross-correlation measure and the final similarity score. This penalty term acts as a bridge that adjusts the matching result based on intensity statistics, preventing incorrect matches caused by intensity variations without requiring complete redesign of the matching algorithm
2Measurement precision
If the normalized cross-correlation function is modified to include penalty terms for intensity differences, then the discriminative power and accuracy of template matching improve, but the computational complexity increases
Solution Approach 1:
The patent modifies the normalized cross-correlation function by introducing a penalty term that changes the sensitivity parameter of the similarity metric. The modified function NCC(p, t) = (Σ(p_i - μp)(t_i - μt)) / (σp * σt * (1 + k * |μp - μt|)) includes a penalty factor k * |μp - μt| that dynamically adjusts based on the difference between mean intensities of the patch and template, reducing sensitivity to intensity changes while maintaining computational efficiency
Solution Approach 2:
The patent applies a partial modification to the cross-correlation function by adding only the necessary penalty term for intensity differences rather than completely redesigning the similarity metric. This partial action approach adds computational complexity only where needed (in the penalty calculation) while preserving the efficient cross-correlation computation for the majority of the matching process
3Measurement precision
If the normalized cross-correlation function is modified to include penalty terms for intensity differences, then the discriminative power and accuracy of template matching improve, but the processing time increases
Solution Approach 1:
The patent calculates the mean intensity (μp, μt) and standard deviation (σp, σt) of the patch and template beforehand as preliminary statistics. These pre-computed values are then reused in the penalty term calculation, avoiding redundant computations and minimizing the additional processing time required by the modified similarity metric
Solution Approach 2:
The patent modifies the normalized cross-correlation function by introducing a penalty term that changes the sensitivity parameter of the similarity metric. The modified function NCC(p, t) = (Σ(p_i - μp)(t_i - μt)) / (σp * σt * (1 + k * |μp - μt|)) includes a penalty factor k * |μp - μt| that dynamically adjusts based on the difference between mean intensities of the patch and template, reducing sensitivity to intensity changes while maintaining computational efficiency
Data Source
AI summary
An image processing apparatus is described comprising a processor configured to access a template of image elements. The processor is configured to search an image which is larger than the template to find a region which is similar to the template, where similarity is measured using a similarity metric. The similarity metric comprises a normalized cross correlation function which is modified to include at least one factor related to a statistic of both the template and the region.


