TEMPLATE PATTERN MATCHING

The model image is slid across the target image till a dissimilarity or similarity function is minimized/maximized

SIMILARITY AND DISSIMILARITY FUNCTIONS

SUM OF SQUARE DIFFERENCES

Sum of square differences can be deployed as dissimilarity function

SUM OF ABSOLUTE DIFFERENCES

NORMALIZED CROSS CORRELATION

This measure is invariant to intensity light changes

The NCC represents the cosine between the vectors and (max when the vectors are aligned)

ZERO MEAN NORMALIZED CROSS CORRELATION

This is a variant of the NCC that takes in to account the mean value of the intensity

SAD vs SDD vs NCC vs ZNCC

ZNCC and NCC are more robust to intensity changes

PERFORMANCE

Template matching computation is too much slow for an industrial environment, in order to speed up computation an image pyramid is deployed

In order for this approximation to work levels need to be chosen empirically

PREVIOUS NEXT