Details on topics covered here may be found in Computer Vision, Models and Inspection by Marshall and Martin.
The topic of template matching The Handbook of Artificial Intelligence (Vol. 3 Ch. XIII).