1 | initial version |
How exact a match? If they all have the same alignment, just do absdiff() then sum().
If you have to worry about mis-alignment errors and don't have too the same image with a different alignment, you can use the HU moments. They're translation, rotation and scale invariant, so that's what you have to look out for as far as similarities.