What is template matching and how is it used in computer vision? How does template matching identify patterns or objects within an image? What are the key techniques used in template matching, such as correlation methods? In what applications is template matching commonly used, like object detection or image recognition? What are the advantages and limitations of template matching in real-world scenarios?