Dear all,
See my suggestions for ExhaustiveTemplateMatching class improvement in the attachment.
The main idea is to stop iterating over template image in case difference threshold is exceeded.
That provides valuable performance improvement for large images.
I have attached a random test for the class also.
Regards,
Vladimir.