It is usually done by comparing the similarity between the template and different regions in the larger image using a similarity metric, such as cross-correlation or ...
It simply scans a larger image for a provided template by sliding the template target image across the larger image. The main option that can be adjusted is the comparison method used as the target ...