Imagine I have an image with a rectangular canvas of three identical squares, all parallel with the side of the image canvas. None of the squares are overlapping. It is easy to find answers all over SO (How to find one image inside of another?) to the problem of finding images within an image that exactly match a given image.
However, sometimes the images are rotated within the image, and they are not matched because of this. Taking our initial example, and rotating one square 25 degrees and retaining that no square overlaps, how could I not only match the two non-rotated squares as well as the rotated square?