It depends on how much you want the result to match your query. If you are trying to match the corresponding parts of different photorealistic images, see the Discovery feature on the Wikipedia page. What you want to use depends on what kind of transformation you expect one image to become another.
However, if you're looking for exact pixel matching, brute force searches are probably bad. This may be O(m^2*n^2) for the m*m image used to search in the n*n image. Using the best algorithms, it can be improved to O(n^2) , linear in the number of pixels. A good approach can be reduced by sampling both images and performing a hierarchical search.
jakar
source share