I would like to compare two bitmaps or parts of a bitmap and see how similar they are.
I came across some similarity algorithms for string data such as Levenshtein distance and Yaro-Winkler distance. they obviously don't help when it comes to raster data.
Can anyone suggest an algorithm to compare how the same bitmap images are?
EDIT
Thanks for the ideas, links, etc.
Although all the information is useful to familiarize yourself with this topic, I wonder how to create images, something more in accordance with this:

source share